79% cryptocurrency-coin-prices

Code Review | Crypto Coin Market Prices

WordPress plugin Crypto Coin Market Prices scored79%from 54 tests.

About plugin

  • Plugin page: cryptocurrency-co...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2019
  • Latest release: Apr 17, 2019
  • Number of updates: 10
  • Update frequency: every 2.6 days
  • Top authors: mybitcoin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,292 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.79MB] [CPU: ▼50.97ms] Passed 4 tests

A check of server-side resources used by Crypto Coin Market Prices
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.21 ▼0.2510.71 ▼29.10
Dashboard /wp-admin3.23 ▼0.1213.58 ▼48.61
Posts /wp-admin/edit.php3.23 ▼0.1313.92 ▼37.38
Add New Post /wp-admin/post-new.php3.23 ▼2.6614.20 ▼88.79
Media Library /wp-admin/upload.php3.23 ▲0.0015.81 ▼18.55

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
cryptocurrency_prices_State
widget_recent-comments
widget_cryptocurrency_prices_main_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Crypto Coin Market Prices
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.25 ▲0.041.70 ▼0.0444.01 ▼0.52
Dashboard /wp-admin2,200 ▲235.55 ▲0.0190.62 ▲3.7341.68 ▼2.68
Posts /wp-admin/edit.php2,102 ▲22.01 ▲0.0541.18 ▲2.4335.47 ▼4.48
Add New Post /wp-admin/post-new.php1,530 ▲423.26 ▼0.34667.19 ▼40.2760.45 ▲4.83
Media Library /wp-admin/upload.php1,399 ▲24.20 ▲0.01113.98 ▲1.7254.83 ▲8.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/cryptocurrency-coin-prices/Cmn/Gen.php+2258
    Undefined index: forceLoadOwn
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • db_upgraded
    • cryptocurrency_prices_State
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_cryptocurrency_prices_main_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Table view.), #2 (Settings.)
You can take inspiration from this readme.txt

cryptocurrency-coin-prices/plugin_root.php 92% from 13 tests

The entry point to "Crypto Coin Market Prices" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cryptocurrency-coin-prices.php" instead of "plugin_root.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,537 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP61,215184,118
JavaScript706418
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity48.36
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods250
▷ Static methods24497.60%
▷ Public methods22590.00%
▷ Protected methods00.00%
▷ Private methods2510.00%
Functions20
▷ Named functions840.00%
▷ Anonymous functions1260.00%
Constants57
▷ Global constants00.00%
▷ Class constants57100.00%
▷ Public constants57100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin