89% cbr-slagingspercentage

Code Review | CBR Slagingspercentage

WordPress plugin CBR Slagingspercentage scored89%from 54 tests.

About plugin

  • Plugin page: cbr-slagingsperce...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Nov 6, 2019
  • Latest release: Mar 30, 2021
  • Number of updates: 47
  • Update frequency: every 10.9 days
  • Top authors: skyedesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,487 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.37ms] Passed 4 tests

Server-side resources used by CBR Slagingspercentage
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.23 ▲0.69
Dashboard /wp-admin3.32 ▲0.0251.73 ▼2.27
Posts /wp-admin/edit.php3.37 ▲0.0255.83 ▲2.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0299.81 ▼13.95
Media Library /wp-admin/upload.php3.24 ▲0.0240.74 ▲2.07

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

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

Browser metrics Passed 4 tests

Checking browser requirements for CBR Slagingspercentage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲7413.25 ▼1.141.84 ▼0.2359.88 ▲11.07
Dashboard /wp-admin2,240 ▲495.86 ▲0.01105.15 ▼2.5641.38 ▼5.71
Posts /wp-admin/edit.php2,116 ▲132.04 ▲0.0340.84 ▲3.9536.58 ▲3.64
Add New Post /wp-admin/post-new.php1,544 ▼1023.36 ▲0.07690.57 ▲12.9764.84 ▲2.78
Media Library /wp-admin/upload.php1,416 ▲134.22 ▲0.00115.17 ▲0.6451.51 ▼1.55

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
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • cbr_slagingspercentage_page_link_data
    • widget_recent-posts

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration 93% 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 require attention: The official readme.txt is a good inspiration

cbr-slagingspercentage/cbr-slagingspercentage.php 92% from 13 tests

The main PHP script in "CBR Slagingspercentage" version 1.4 is automatically included on every request by WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 296 characters long)

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
Good job! No executable or dangerous file extensions detected2,474 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS22631912,408
PHP283966

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions5
▷ Named functions5100.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