84% cryptocurrency-prijsvergelijking-widget

Code Review | Cryptocurrency Prijsvergelijking Widget

WordPress plugin Cryptocurrency Prijsvergelijking Widget scored84%from 54 tests.

About plugin

  • Plugin page: cryptocurrency-pr...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 27, 2018
  • Latest release: Aug 27, 2018
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: cryptoprijzen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,334 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.57ms] Passed 4 tests

An overview of server-side resources used by Cryptocurrency Prijsvergelijking Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0753.75 ▲11.36
Dashboard /wp-admin3.37 ▲0.0652.34 ▼8.40
Posts /wp-admin/edit.php3.42 ▲0.0652.95 ▲4.22
Add New Post /wp-admin/post-new.php5.95 ▲0.06104.44 ▲3.06
Media Library /wp-admin/upload.php3.29 ▲0.0638.06 ▼1.16
Alle Shortcodes /wp-admin/edit.php?post_type=shortcode3.3338.12
Nieuwe Shortcode /wp-admin/post-new.php?post_type=shortcode3.3253.14

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Cryptocurrency Prijsvergelijking Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7813.51 ▼1.241.78 ▼0.1142.43 ▼0.86
Dashboard /wp-admin2,227 ▲395.84 ▲0.93104.10 ▼0.1342.71 ▲0.20
Posts /wp-admin/edit.php2,113 ▲242.01 ▼0.0140.03 ▲1.8034.29 ▼1.52
Add New Post /wp-admin/post-new.php1,562 ▲2923.28 ▼0.07638.91 ▼65.6761.88 ▲8.15
Media Library /wp-admin/upload.php1,406 ▲184.19 ▼0.0496.68 ▼12.4247.10 ▼0.54
Alle Shortcodes /wp-admin/edit.php?post_type=shortcode1,0851.9329.5130.89
Nieuwe Shortcode /wp-admin/post-new.php?post_type=shortcode1,6802.6049.6059.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocurrency-prijsvergelijking-widget/functions.php:103
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocurrency-prijsvergelijking-widget/functions.php:103

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can take inspiration from this readme.txt

cryptocurrency-prijsvergelijking-widget/cryptocurrency-prijsvergelijker.php 92% from 13 tests

"Cryptocurrency Prijsvergelijking Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("cryptocurrency-prijsvergelijking-widget.php" instead of "cryptocurrency-prijsvergelijker.php")

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
There were no executable files found in this plugin270 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2248270

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin