72% reorder-post-within-categories

Code Review | ReOrder Posts within Categories

WordPress plugin ReOrder Posts within Categories scored72%from 54 tests.

About plugin

  • Plugin page: reorder-post-with...
  • Plugin version: 2.14.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2.0
  • WordPress version: 6.3.1
  • First release: Dec 17, 2012
  • Latest release: May 3, 2023
  • Number of updates: 125
  • Update frequency: every 30.9 days
  • Top authors: aurovrata (76%)Aurelien (24.8%)

Code review

54 tests

User reviews

59 reviews

Install metrics

9,000+ active /265,419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.67ms] Passed 4 tests

A check of server-side resources used by ReOrder Posts within Categories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.13 ▼3.44
Dashboard /wp-admin3.33 ▲0.0346.25 ▼3.32
Posts /wp-admin/edit.php3.38 ▲0.0342.95 ▼2.18
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.37 ▼1.33
Media Library /wp-admin/upload.php3.25 ▲0.0235.44 ▼1.74

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
_rpwc2_settings
_rpwc2_sort_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ReOrder Posts within Categories
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.77 ▼0.781.80 ▼0.0447.29 ▼1.52
Dashboard /wp-admin2,221 ▲335.86 ▲0.07110.33 ▼2.8243.75 ▼1.28
Posts /wp-admin/edit.php2,104 ▲152.04 ▲0.0435.17 ▼2.8034.64 ▲0.61
Add New Post /wp-admin/post-new.php1,547 ▲2723.33 ▼0.05592.62 ▼5.9053.86 ▲2.14
Media Library /wp-admin/upload.php1,403 ▲154.17 ▼0.0492.57 ▼4.0641.02 ▼1.15
ReOrder Post /wp-admin/class-reorder-post-within-categories-admin.php260.440.1416.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • _rpwc2_sort_options
    • widget_recent-posts
    • _rpwc2_settings
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/reorder-post-within-categories/public/partials/reorder-post-within-categories-public-display.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: post_type_detail in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php:20
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-settings-display.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-notice-display.php:5
    • > PHP Notice
      Undefined variable: settingsOptions in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14
    • > PHP Notice
      Trying to get property 'name' of non-object in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/class-reorder-post-within-categories-admin.php
    • > Network (severe)
    wp-admin/class-reorder-post-within-categories-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === reorder-post-within-categories === )
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

reorder-post-within-categories/reorder-post-within-categories.php Passed 13 tests

"ReOrder Posts within Categories" version 2.14.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,294 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP151599771,597
JavaScript43050394
PO File14040139
CSS338104
Markdown120060

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity37.71
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity4.97
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods66
▷ Static methods812.12%
▷ Public methods4568.18%
▷ Protected methods913.64%
▷ Private methods1218.18%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png7.47KB3.95KB▼ 47.15%