84% cryptocurrency-widgets-from-coinlib

Code Review | Cryptocurrency Widgets From Coinlib

WordPress plugin Cryptocurrency Widgets From Coinlib scored84%from 54 tests.

About plugin

  • Plugin page: cryptocurrency-wi...
  • Plugin version: 20181031...
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2018
  • Latest release: May 13, 2019
  • Number of updates: 4
  • Update frequency: every 48.2 days
  • Top authors: coinlib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,999 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.95ms] Passed 4 tests

A check of server-side resources used by Cryptocurrency Widgets From Coinlib
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0446.54 ▲6.24
Dashboard /wp-admin3.35 ▲0.0545.58 ▼9.69
Posts /wp-admin/edit.php3.40 ▲0.0549.04 ▲1.56
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.86 ▼12.61
Media Library /wp-admin/upload.php3.27 ▲0.0537.28 ▲0.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Cryptocurrency Widgets From Coinlib
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.30 ▼0.091.86 ▲0.1643.77 ▼2.28
Dashboard /wp-admin2,214 ▲405.59 ▲0.0392.31 ▼1.0039.90 ▼1.96
Posts /wp-admin/edit.php2,116 ▲162.03 ▲0.0139.59 ▲4.3037.95 ▼1.55
Add New Post /wp-admin/post-new.php1,539 ▲1323.13 ▼0.12630.75 ▼52.8864.99 ▲13.65
Media Library /wp-admin/upload.php1,419 ▲164.17 ▼0.0796.87 ▼0.1845.06 ▲3.50

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocurrency-widgets-from-coinlib/cryptocurrency-widgets-from-coinlib.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: bitcoin, coinmarketcap, ticker, cryptocurrency, crypto

cryptocurrency-widgets-from-coinlib/cryptocurrency-widgets-from-coinlib.php 92% from 13 tests

The main PHP file in "Cryptocurrency Widgets From Coinlib" ver. 20181031... adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "20181031...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin241 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1159157
JavaScript13084

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods650.00%
▷ Public methods758.33%
▷ Protected methods00.00%
▷ Private methods541.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin