83% rundiz-postorder

Code Review | Rundiz PostOrder

WordPress plugin Rundiz PostOrder scored83%from 54 tests.

About plugin

  • Plugin page: rundiz-postorder
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2016
  • Latest release: Dec 20, 2022
  • Number of updates: 36
  • Update frequency: every 62.8 days
  • Top authors: okvee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,025 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▲1.82ms] Passed 4 tests

An overview of server-side resources used by Rundiz PostOrder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2943.66 ▲3.36
Dashboard /wp-admin3.61 ▲0.3157.42 ▲4.63
Posts /wp-admin/edit.php3.72 ▲0.3753.34 ▲7.68
Add New Post /wp-admin/post-new.php6.19 ▲0.3188.22 ▼8.41
Media Library /wp-admin/upload.php3.53 ▲0.3045.83 ▲9.77
Rundiz PostOrder /wp-admin/options-general.php?page=rd-postorder-settings3.5236.31
Re-order posts /wp-admin/edit.php?page=rd-postorder_reorder-posts3.8743.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
rundiz_postorder_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Rundiz PostOrder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.28 ▲0.001.77 ▲0.0544.11 ▲0.34
Dashboard /wp-admin2,206 ▲265.63 ▼0.0295.31 ▲5.3142.72 ▲0.04
Posts /wp-admin/edit.php2,108 ▲81.96 ▲0.0235.98 ▼2.6736.52 ▲0.39
Add New Post /wp-admin/post-new.php1,532 ▲622.90 ▼0.88666.73 ▲48.7460.37 ▲12.99
Media Library /wp-admin/upload.php1,405 ▲84.21 ▼0.00111.21 ▲8.8645.64 ▲5.10
Rundiz PostOrder /wp-admin/options-general.php?page=rd-postorder-settings8232.0023.4627.02
Re-order posts /wp-admin/edit.php?page=rd-postorder_reorder-posts1,1531.9429.9133.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Trait 'RdPostOrder\\App\\AppTrait' not found in wp-content/plugins/rundiz-postorder/App/Models/PostOrder.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'RdPostOrder\\App\\Controllers\\Admin\\Posts\\AbstractReOrderPosts' not found in wp-content/plugins/rundiz-postorder/App/Controllers/Admin/Posts/ReOrderPostsAjax.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'RdPostOrder\\App\\Controllers\\Admin\\Posts\\AbstractReOrderPosts' not found in wp-content/plugins/rundiz-postorder/App/Controllers/Admin/Posts/ReOrderPosts.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'RdPostOrder\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rundiz-postorder/App/Controllers/Admin/Posts/HookNewPost.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/rundiz-postorder/App/Views/admin/Posts/ReOrderPosts/adminHelpTab_04.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rundiz-postorder/App/Views/admin/Posts/reOrderPosts_listPostsAction_v.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'RdPostOrder\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rundiz-postorder/App/Controllers/Admin/Settings/MultisiteSettings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/rundiz-postorder/App/Views/admin/Posts/ReOrderPosts/adminHelpTab_02.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function RdPostOrder\\App\\add_action() in wp-content/plugins/rundiz-postorder/App/App.php:38
    • > PHP Fatal error
      Uncaught Error: Interface 'RdPostOrder\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rundiz-postorder/App/Controllers/Admin/Posts/AbstractReOrderPosts.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: re arrange, sort, order posts, rearrange, posts...

rundiz-postorder/rd-postorder.php 77% from 13 tests

Analyzing the main PHP file in "Rundiz PostOrder" version 1.0.3
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/App/languages/")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rundiz-postorder.php" instead of "rd-postorder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5,788 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP306511,3002,403
JavaScript1110153482
PO File14556133
Markdown128054
CSS210345

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity19.90
▷ Minimum class complexity1.00
▷ Maximum class complexity129.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces8
Interfaces1
Traits1
Classes18
▷ Abstract classes15.56%
▷ Concrete classes1794.44%
▷ Final classes00.00%
Methods111
▷ Static methods32.70%
▷ Public methods8172.97%
▷ Protected methods2724.32%
▷ Private methods32.70%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin