10% reorder-my-sites

Code Review | Reorder My Sites

WordPress plugin Reorder My Sites scored10%from 54 tests.

About plugin

  • Plugin page: reorder-my-sites
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.5
  • WordPress version: 6.3.1
  • First release: Jan 30, 2012
  • Latest release: May 9, 2018
  • Number of updates: 14
  • Update frequency: every 163.6 days
  • Top authors: ericjuden (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

90+ active /3,292 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.74 ▼1.89
Dashboard /wp-admin3.31 ▼0.0447.79 ▼14.75
Posts /wp-admin/edit.php3.36 ▲0.0044.61 ▼7.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.65 ▼11.50
Media Library /wp-admin/upload.php3.23 ▲0.0037.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.16 ▼0.211.72 ▼0.2048.15 ▲5.20
Dashboard /wp-admin2,195 ▲185.52 ▼0.1094.09 ▼4.5643.74 ▲1.59
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0335.23 ▼5.8336.31 ▼2.92
Add New Post /wp-admin/post-new.php1,526 ▼023.39 ▲0.17675.96 ▲2.4170.57 ▲16.92
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.05101.24 ▼16.4145.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP191427

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 code0.36
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity2.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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