89% plugin-organiser

Code Review | Plugin Organiser

WordPress plugin Plugin Organiser scored89%from 54 tests.

About plugin

  • Plugin page: plugin-organiser
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Mar 12, 2021
  • Latest release: Mar 12, 2021
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: innocow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.95ms] Passed 4 tests

Analyzing server-side resources used by Plugin Organiser
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.15 ▼4.40
Dashboard /wp-admin3.32 ▲0.0248.23 ▼3.99
Posts /wp-admin/edit.php3.37 ▲0.0151.06 ▲1.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.82 ▼7.23
Media Library /wp-admin/upload.php3.24 ▲0.0137.04 ▼0.16
Plugin Organiser /wp-admin/options-general.php?page=plugin-organiser-settings3.2736.89

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Organiser
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.36 ▼1.011.77 ▼0.3342.73 ▼1.23
Dashboard /wp-admin2,221 ▲304.88 ▼1.02110.18 ▼2.1040.16 ▲0.20
Posts /wp-admin/edit.php2,107 ▲182.03 ▼0.0140.21 ▲2.0934.86 ▲0.08
Add New Post /wp-admin/post-new.php1,531 ▼222.91 ▼0.18626.37 ▼63.0335.77 ▼16.17
Media Library /wp-admin/upload.php1,406 ▲154.27 ▲0.0795.75 ▼7.0340.66 ▼8.76
Plugin Organiser /wp-admin/options-general.php?page=plugin-organiser-settings8062.0627.9637.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

plugin-organiser/plugin-organiser.php 85% from 13 tests

The primary PHP file in "Plugin Organiser" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.2" instead of "5.4")

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
No dangerous file extensions were detected1,666 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP9405187855
JavaScript52907619
CSS23512118
PO File1242674

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.57
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1629.09%
▷ Public methods5396.36%
▷ Protected methods00.00%
▷ Private methods23.64%
Functions10
▷ Named functions660.00%
▷ Anonymous functions440.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin