84% all-round-order

Code Review | All Round Order

WordPress plugin All Round Order scored 84% from 54 tests.

About plugin

  • Plugin page: all-round-order
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 4, 2014
  • Latest release: Feb 10, 2015
  • Number of updates: 11
  • Update frequency: every 31.2 days
  • Top authors: itsjinlie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,459 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼12.50ms] Passed 4 tests

Analyzing server-side resources used by All Round Order
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.13 ▼17.96
Dashboard /wp-admin3.39 ▲0.0946.80 ▼15.53
Posts /wp-admin/edit.php3.44 ▲0.0949.20 ▼0.25
Add New Post /wp-admin/post-new.php5.97 ▲0.0988.47 ▼15.61
Media Library /wp-admin/upload.php3.31 ▲0.0834.09 ▼0.88
Custom Order /wp-admin/edit.php?post_type=wp_template_part&page=custom-order-wp_template_part3.2929.10
Custom Order /wp-admin/edit.php?post_type=nav_menu_item&page=custom-order-nav_menu_item3.2933.47
All Round Order /wp-admin/options-general.php?page=wbso-options3.2828.09
Custom Order /wp-admin/edit.php?post_type=attachment&page=custom-order-attachment3.2927.65
Custom Order /wp-admin/edit.php?post_type=page&page=custom-order-page3.2926.44
Custom Order /wp-admin/edit.php?post_type=revision&page=custom-order-revision3.2931.23
Custom Order /wp-admin/edit.php?post_type=wp_block&page=custom-order-wp_block3.2931.21
Custom Order /wp-admin/edit.php?post_type=user_request&page=custom-order-user_request3.2929.55
Custom Order /wp-admin/edit.php?post_type=wp_navigation&page=custom-order-wp_navigation3.2928.49
Custom Order /wp-admin/upload.php?page=custom-order-attachment3.2933.32

Server storage [IO: ▲0.15MB] [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: 20 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
wbsoft_order_options
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for All Round Order
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.55 ▼0.831.94 ▲0.0543.32 ▲4.58
Dashboard /wp-admin2,222 ▲345.90 ▲0.88109.57 ▲3.3838.62 ▼6.00
Posts /wp-admin/edit.php2,108 ▲222.05 ▲0.0638.85 ▼2.5534.39 ▲2.13
Add New Post /wp-admin/post-new.php1,526 ▲617.81 ▼5.50660.79 ▲57.8453.28 ▼11.34
Media Library /wp-admin/upload.php1,404 ▲224.20 ▼0.0195.43 ▼1.6641.71 ▲0.57
Custom Order /wp-admin/edit.php?post_type=wp_template_part&page=custom-order-wp_template_part8151.8328.4123.36
Custom Order /wp-admin/edit.php?post_type=nav_menu_item&page=custom-order-nav_menu_item8001.8227.4620.48
All Round Order /wp-admin/options-general.php?page=wbso-options8032.0625.3829.85
Custom Order /wp-admin/edit.php?post_type=attachment&page=custom-order-attachment8161.8526.6721.98
Custom Order /wp-admin/edit.php?post_type=page&page=custom-order-page8311.9827.2523.07
Custom Order /wp-admin/edit.php?post_type=revision&page=custom-order-revision8181.9027.2723.84
Custom Order /wp-admin/edit.php?post_type=wp_block&page=custom-order-wp_block8181.8625.3822.64
Custom Order /wp-admin/edit.php?post_type=user_request&page=custom-order-user_request8151.8125.6221.01
Custom Order /wp-admin/edit.php?post_type=wp_navigation&page=custom-order-wp_navigation8151.8226.1323.50
Custom Order /wp-admin/upload.php?page=custom-order-attachment8191.8526.1525.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Almost there! Just fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/all-round-order/classes/class.walk.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/all-round-order/1.1/classes/class.walk.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/all-round-order/1.1/all-round-order.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/all-round-order/all-round-order.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-round-order/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-round-order/1.1/settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

all-round-order/all-round-order.php Passed 13 tests

"All Round Order" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
Posts, Custom Post Types and Media Library Order using a Drag and Drop feature

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
No dangerous file extensions were detected564 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5141135514
CSS11050

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
8 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
1.1/images/settings-icon.png2.85KB1.68KB▼ 40.82%
1.1/screenshot-2.png31.45KB15.94KB▼ 49.32%
screenshot-1.png23.72KB11.90KB▼ 49.82%
1.1/screenshot-1.png23.72KB11.90KB▼ 49.82%
screenshot-2.png31.45KB15.94KB▼ 49.32%