Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.71ms] Passed 4 tests
Server-side resources used by WP Grid Sorter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.28 ▼6.19 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.24 ▼5.11 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.06 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.67 ▼23.19 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.88 ▲4.39 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Grid Sorter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 14.38 ▲0.02 | 1.83 ▼0.12 | 41.46 ▼3.13 |
Dashboard /wp-admin | 2,217 ▲49 | 5.81 ▲0.12 | 91.28 ▼5.96 | 44.47 ▲0.20 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.37 ▲0.44 | 34.63 ▼2.70 | 34.84 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 22.89 ▼0.12 | 638.66 ▼49.92 | 80.60 ▲30.95 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.35 ▲0.22 | 107.00 ▼11.84 | 45.12 ▼5.37 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-grid-sorter/inc/hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function hasKeys() on null in wp-content/plugins/wp-grid-sorter/pages/general.php:15
- > PHP Notice
Trying to get property 'mappings' of non-object in wp-content/plugins/wp-grid-sorter/pages/general.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-grid-sorter/pages/edit/item.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-grid-sorter/pages/edit.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-grid-sorter/wp-grid-sorter.php:127
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: grid, order, curate, sort, masonry
wp-grid-sorter/wp-grid-sorter.php Passed 13 tests
"WP Grid Sorter" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
14 characters long description:
Sort your grid
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 plugin582 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 69 | 239 | 354 |
JavaScript | 4 | 24 | 140 | 143 |
Markdown | 1 | 13 | 0 | 49 |
CSS | 1 | 5 | 0 | 36 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 22.22% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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