84% plugins-load-order

Code Review | Plugins Load Order

WordPress plugin Plugins Load Order scored84%from 54 tests.

About plugin

  • Plugin page: plugins-load-order
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2015
  • Latest release: Oct 26, 2022
  • Number of updates: 17
  • Update frequency: every 149.2 days
  • Top authors: chespir (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /9,270 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Plugins Load Order
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.66 ▼3.37
Dashboard /wp-admin3.35 ▲0.0043.80 ▼17.85
Posts /wp-admin/edit.php3.40 ▲0.0446.88 ▼0.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.99 ▼11.56
Media Library /wp-admin/upload.php3.28 ▲0.0436.01 ▲2.26
Plugins Load Order /wp-admin/options-general.php?page=plugins_load_order_settings_menu3.2533.23

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
plugins_load_order_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugins Load Order
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.52 ▼0.841.80 ▼0.7647.02 ▼1.31
Dashboard /wp-admin2,210 ▲225.86 ▼0.02107.01 ▼8.1340.01 ▼5.63
Posts /wp-admin/edit.php2,093 ▲12.06 ▲0.0840.17 ▲1.4534.86 ▼1.70
Add New Post /wp-admin/post-new.php1,536 ▲323.18 ▲0.12665.58 ▼10.4549.14 ▼17.20
Media Library /wp-admin/upload.php1,392 ▲14.16 ▼0.0896.51 ▼0.2641.87 ▼1.74
Plugins Load Order /wp-admin/options-general.php?page=plugins_load_order_settings_menu8251.8632.2727.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • plugins_load_order_options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/plugins-load-order/plugins-load-order.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (This is the simple drag-and-drop interface) image not found
The official readme.txt might help

plugins-load-order/plugins-load-order.php 92% from 13 tests

Analyzing the main PHP file in "Plugins Load Order" version 1.2.2
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected296 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13937147
CSS110762
JavaScript15352
PO File1182735

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Constants5
▷ Global constants5100.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