84% display-stellar-lumens-price

Code Review | Display Stellar Lumens Price

WordPress plugin Display Stellar Lumens Price scored84%from 54 tests.

About plugin

  • Plugin page: display-stellar-l...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 30, 2018
  • Latest release: Jan 30, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: treycopeland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.11ms] Passed 4 tests

An overview of server-side resources used by Display Stellar Lumens Price
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.21 ▼12.02
Dashboard /wp-admin3.34 ▼0.0153.02 ▼17.67
Posts /wp-admin/edit.php3.39 ▲0.0355.04 ▲1.38
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.02 ▼6.10
Media Library /wp-admin/upload.php3.26 ▲0.0342.44 ▼0.66

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_stellar_price_widget
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Display Stellar Lumens Price: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.16 ▼0.191.74 ▲0.1041.22 ▼0.62
Dashboard /wp-admin2,189 ▲125.62 ▼0.0887.48 ▼9.0542.77 ▲2.26
Posts /wp-admin/edit.php2,100 ▼02.14 ▲0.1439.00 ▼0.4837.21 ▼1.03
Add New Post /wp-admin/post-new.php1,531 ▲523.36 ▲0.20683.92 ▼12.0452.43 ▼1.23
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.00102.54 ▼13.1446.66 ▼5.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_stellar_price_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/display-stellar-lumens-price/stellar-price-widget.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: stellar, lumens, cryptocurrency, stellar lumens

display-stellar-lumens-price/stellar-price-widget.php 92% from 13 tests

The primary PHP file in "Display Stellar Lumens Price" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("display-stellar-lumens-price.php" instead of "stellar-price-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin122 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14122114
JavaScript1308

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
stellar-rocket.png3.69KB0.88KB▼ 76.28%