74% child-order

Code Review | Child Order

WordPress plugin Child Order scored74%from 54 tests.

About plugin

  • Plugin page: child-order
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: May 16, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: marcus.downing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,070 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼36.33ms] Passed 4 tests

This is a short check of server-side resources used by Child Order
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.41 ▼0.11
Dashboard /wp-admin3.01 ▼0.3324.23 ▼40.84
Posts /wp-admin/edit.php3.01 ▼0.3426.20 ▼21.89
Add New Post /wp-admin/post-new.php3.01 ▼2.8724.49 ▼71.88
Media Library /wp-admin/upload.php3.01 ▼0.2123.73 ▼10.70

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Child Order
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.17 ▼0.201.99 ▼0.3744.67 ▼13.42
Dashboard /wp-admin2,195 ▲185.51 ▼0.0785.77 ▼19.2342.62 ▼0.29
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0639.72 ▲2.9336.61 ▼0.55
Add New Post /wp-admin/post-new.php1,526 ▼223.40 ▲0.36614.59 ▼72.5754.12 ▲2.16
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.01101.90 ▼6.2346.40 ▲0.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/child-order/child-order.php+39
    Undefined index: post
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/child-order/child-order.php:32

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 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (The edit screen, with options to drag pages up and down.)
You can look at the official readme.txt

child-order/child-order.php Passed 13 tests

This is the main PHP file of "Child Order" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Adds an admin panel to pages, to rearrange and enable/disable their child pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin162 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2182385
JavaScript34376
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
7 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png46.43KB19.47KB▼ 58.07%
images/grip.png0.21KB0.11KB▼ 45.83%
images/bang-min.png2.92KB0.31KB▼ 89.22%
images/bang-black-v.png3.58KB0.72KB▼ 79.87%
images/bang-widget.png0.81KB1.11KB0.00%