90% kades-crypto-widgets

Code Review | Kades Crypto Widgets

WordPress plugin Kades Crypto Widgets scored90%from 54 tests.

About plugin

  • Plugin page: kades-crypto-widgets
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Jan 1, 2018
  • Latest release: Mar 27, 2018
  • Number of updates: 10
  • Update frequency: every 8.5 days
  • Top authors: phankimi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /16,598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.34ms] Passed 4 tests

An overview of server-side resources used by Kades Crypto Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.24 ▲2.69
Dashboard /wp-admin3.35 ▲0.0042.24 ▼17.82
Posts /wp-admin/edit.php3.40 ▲0.0445.30 ▼2.07
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.70 ▼0.37
Media Library /wp-admin/upload.php3.27 ▲0.0433.48 ▼1.08

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_kades_crypto_header
widget_kades_crypto_icos
widget_kades_crypto_tabbed
widget_recent-posts
widget_kades_crypto_converter
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Kades Crypto Widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.47 ▼0.748.30 ▲6.6143.88 ▲0.21
Dashboard /wp-admin2,195 ▲155.57 ▼0.0284.42 ▼13.1536.70 ▼4.60
Posts /wp-admin/edit.php2,097 ▼32.10 ▲0.1237.50 ▲2.5132.37 ▼5.37
Add New Post /wp-admin/post-new.php1,526 ▼223.02 ▼0.02601.22 ▲1.7855.99 ▼30.80
Media Library /wp-admin/upload.php1,394 ▼64.18 ▼0.06100.58 ▼0.4342.76 ▼1.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_recent-comments
    • widget_kades_crypto_icos
    • db_upgraded
    • theysaidso_admin_options
    • widget_kades_crypto_converter
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_kades_crypto_tabbed
    • widget_kades_crypto_header

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 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
8 plugin tags: cryptocurrencies, ethereum, bitcoin, crypto, blockchain...

kades-crypto-widgets/kades-crypto-widgets.php Passed 13 tests

The entry point to "Kades Crypto Widgets" version 1.0.3 is a PHP file that has certain tags in its header comment area
41 characters long description:
Displays Cryptocurrency widgets and chart

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected144 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2221678
JavaScript115563
CSS1113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin