68% plugin-organizer

Code Review | Plugin Organizer

WordPress plugin Plugin Organizer scored68%from 54 tests.

About plugin

  • Plugin page: plugin-organizer
  • Plugin version: 10.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 22, 2010
  • Latest release: Oct 11, 2023
  • Number of updates: 260
  • Update frequency: every 18.0 days
  • Top authors: foomagoo (100%)

Code review

54 tests

User reviews

224 reviews

Install metrics

10,000+ active /681,906 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.99MB] [CPU: ▲1.48ms] Passed 4 tests

A check of server-side resources used by Plugin Organizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.39 ▲0.9249.78 ▲9.68
Dashboard /wp-admin4.35 ▲1.0455.07 ▲1.79
Posts /wp-admin/edit.php4.40 ▲1.0461.96 ▲9.15
Add New Post /wp-admin/post-new.php6.89 ▲1.0097.97 ▼9.46
Media Library /wp-admin/upload.php4.20 ▲0.9743.97 ▲4.43
Settings /wp-admin/admin.php?page=Plugin_Organizer4.2746.57
Plugin Filters /wp-admin/edit.php?post_type=plugin_filter4.3145.06
Group And Order Plugins /wp-admin/admin.php?page=PO_group_and_order_plugins4.1943.25
Post Type Plugins /wp-admin/admin.php?page=PO_pt_plugins4.1746.36
Search Plugins /wp-admin/admin.php?page=PO_search_plugins4.1742.69
Filter Groups /wp-admin/edit-tags.php?taxonomy=filter_group&post_type=plugin_filter4.2050.21
Global Plugins /wp-admin/admin.php?page=PO_global_plugins4.1745.75

Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • There were 1 file (24.90KB) illegally modified outside of "wp-content/plugins/plugin-organizer/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/PluginOrganizerMU.class.php
Filesystem: 22 new files
Database: 1 new table, 16 new options
New tables
wp_po_plugins
New WordPress options
PO_updating_plugin
PO_version_num
PO_fuzzy_url_matching
PO_debug_roles
PO_custom_post_type_support
PO_disable_plugins_by_role
can_compress_scripts
theysaidso_admin_options
db_upgraded
PO_enabled_roles
...

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Organizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.25 ▼0.282.01 ▲0.1745.82 ▼1.95
Dashboard /wp-admin2,260 ▲835.73 ▲0.1692.41 ▲2.1942.99 ▼1.70
Posts /wp-admin/edit.php2,179 ▲791.97 ▲0.0340.40 ▲4.9334.29 ▼3.70
Add New Post /wp-admin/post-new.php1,580 ▲4723.20 ▲0.10674.57 ▼14.7760.72 ▲8.30
Media Library /wp-admin/upload.php1,462 ▲594.18 ▼0.0295.89 ▼8.5644.93 ▼0.72
Settings /wp-admin/admin.php?page=Plugin_Organizer1,5453.0953.0632.98
Plugin Filters /wp-admin/edit.php?post_type=plugin_filter1,1801.9836.0734.80
Group And Order Plugins /wp-admin/admin.php?page=PO_group_and_order_plugins1,0782.1956.7031.30
Post Type Plugins /wp-admin/admin.php?page=PO_pt_plugins1,1622.1947.0638.61
Search Plugins /wp-admin/admin.php?page=PO_search_plugins1,0912.5837.5632.71
Filter Groups /wp-admin/edit-tags.php?taxonomy=filter_group&post_type=plugin_filter1,3322.1226.7130.22
Global Plugins /wp-admin/admin.php?page=PO_global_plugins1,0552.5739.5233.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_po_plugins
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • PO_disable_plugins_frontend
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • PO_disable_plugins_by_role
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 44 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=PO_global_plugins
    • > Notice in wp-content/plugins/plugin-organizer/lib/PO_Template.class.php+156
    Trying to access array offset on value of type null

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 fix the following items
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plugin-organizer/lib/PluginOrganizerMU.class.php:24
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/plugin-organizer/tpl/postMetaBox.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plugin-organizer/tpl/settings.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/plugin-organizer/tpl/search_plugins_js.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/plugin-organizer/tpl/postMetaBox.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/plugin-organizer/tpl/settings_page_js.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/plugin-organizer/tpl/common_js.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/plugin-organizer/plugin-organizer.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/plugin-organizer/tpl/global_plugins_js.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/plugin-organizer/tpl/pt_plugins_js.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

plugin-organizer/plugin-organizer.php Passed 13 tests

Analyzing the main PHP file in "Plugin Organizer" version 10.1.10
93 characters long description:
A plugin to disable plugins on indivudual pages and change the order that they are loaded in.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin5,247 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP187336554,583
CSS21290629
JavaScript12135

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 169)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity216.25
▷ Minimum class complexity72.00
▷ Maximum class complexity388.00
Average method complexity8.49
▷ Minimum method complexity1.00
▷ Maximum method complexity169.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods115
▷ Static methods00.00%
▷ Public methods115100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin