Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/reorder-my-sites/reorder-my-sites.php+44
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.93ms] Passed 4 tests
This is a short check of server-side resources used by Reorder My Sites
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.74 ▼1.89 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.79 ▼14.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.61 ▼7.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.65 ▼11.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.89 ▼0.62 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Reorder My Sites: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.16 ▼0.21 | 1.72 ▼0.20 | 48.15 ▲5.20 |
Dashboard /wp-admin | 2,195 ▲18 | 5.52 ▼0.10 | 94.09 ▼4.56 | 43.74 ▲1.59 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▲0.03 | 35.23 ▼5.83 | 36.31 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.39 ▲0.17 | 675.96 ▲2.41 | 70.57 ▲16.92 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▲0.05 | 101.24 ▼16.41 | 45.03 ▼3.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/reorder-my-sites/reorder-my-sites.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: blogs, order, dashboard, reorder, wordpress...
reorder-my-sites/reorder-my-sites.php Passed 13 tests
"Reorder My Sites" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
Reorders the My Sites dropdown menu in the Admin Bar alphabetically. It keeps the main blog at the top.
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 detected27 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 14 | 27 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin