83% simple-page-ordering

Code Review | Simple Page Ordering

WordPress plugin Simple Page Ordering scored83%from 54 tests.

About plugin

  • Plugin page: simple-page-ordering
  • Plugin version: 2.6.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Aug 21, 2010
  • Latest release: Nov 9, 2023
  • Number of updates: 71
  • Update frequency: every 68.1 days
  • Top authors: jakemgold (60.56%)10up (18.31%)helen (14.08%)10upbot (9.86%)dd32 (2.82%)

Code review

54 tests

User reviews

127 reviews

Install metrics

200,000+ active /3,176,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.22ms] Passed 4 tests

Server-side resources used by Simple Page Ordering
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1235.42 ▼1.70
Dashboard /wp-admin3.42 ▲0.0845.18 ▼14.95
Posts /wp-admin/edit.php3.54 ▲0.1853.84 ▲5.34
Add New Post /wp-admin/post-new.php6.01 ▲0.1288.85 ▼10.27
Media Library /wp-admin/upload.php3.35 ▲0.1235.92 ▼1.95

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Simple Page Ordering
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.54 ▲0.271.62 ▲0.0437.83 ▼2.76
Dashboard /wp-admin2,195 ▲215.60 ▼0.0591.28 ▼8.7741.03 ▲2.87
Posts /wp-admin/edit.php2,103 ▼01.96 ▼0.0340.32 ▼1.9936.98 ▼8.03
Add New Post /wp-admin/post-new.php1,526 ▼023.35 ▼0.23688.05 ▲7.2153.89 ▼6.31
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.04100.82 ▼6.6341.99 ▼4.35

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SimplePageOrdering\\add_action() in wp-content/plugins/simple-page-ordering/class-simple-page-ordering.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SimplePageOrdering\\add_action() in wp-content/plugins/simple-page-ordering/class-simple-page-ordering.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add a description for screenshot #2 in simple-page-ordering/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

simple-page-ordering/simple-page-ordering.php 92% from 13 tests

The entry point to "Simple Page Ordering" version 2.6.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin527 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4120200512
Bourne Shell15413
CSS1001
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity46.50
▷ Minimum class complexity14.00
▷ Maximum class complexity79.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1664.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin