83% coin-stats-cryptocurrency-widgets

Code Review | Coin Stats Cryptocurrency Widgets

WordPress plugin Coin Stats Cryptocurrency Widgets scored83%from 54 tests.

About plugin

  • Plugin page: coin-stats-crypto...
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Nov 15, 2019
  • Latest release: Jul 19, 2021
  • Number of updates: 14
  • Update frequency: every 43.9 days
  • Top authors: coinstats (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /8,873 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.05ms] Passed 4 tests

Analyzing server-side resources used by Coin Stats Cryptocurrency Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.14 ▲1.28
Dashboard /wp-admin3.41 ▲0.0652.91 ▼9.65
Posts /wp-admin/edit.php3.52 ▲0.1649.51 ▼0.99
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.27 ▼18.17
Media Library /wp-admin/upload.php3.33 ▲0.1036.15 ▼3.39

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 13 new options
New WordPress options
widget_coinstats-coin-list-widget
widget_coinstats-coin-chart-widget
widget_coinstats-coin-price-marquee-widget
widget_theysaidso_widget
widget_recent-comments
widget_coinststas-calculator-widget
widget_coinstats-converter-widget
widget_coinstats-insight-widget
db_upgraded
theysaidso_admin_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coin Stats Cryptocurrency Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.291.75 ▲0.1344.85 ▲3.21
Dashboard /wp-admin2,195 ▲185.52 ▼0.0190.33 ▲0.0841.93 ▼6.61
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0535.97 ▼1.7432.99 ▼3.78
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▲0.09617.99 ▼81.2047.09 ▼18.04
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0896.09 ▼8.1344.46 ▲0.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 13 options in the database
    • widget_recent-comments
    • widget_coinstats-insight-widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_coinstats-coin-price-marquee-widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_coinststas-calculator-widget
    • widget_coinstats-converter-widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/coin-stats-cryptocurrency-widgets/coinstats-widgets.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

coin-stats-cryptocurrency-widgets/coinstats-widgets.php 85% from 13 tests

The primary PHP file in "Coin Stats Cryptocurrency Widgets" version 1.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("coin-stats-cryptocurrency-widgets.php" instead of "coinstats-widgets.php")
  • Description: The description should be shorter than 140 characters (currently 374 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,952 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1456714,531
PHP12937421

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin