77% real-custom-post-order

Code Review | Real Custom Post Order: Create a custom order for your content

WordPress plugin Real Custom Post Order: Create a custom order for your content scored77%from 54 tests.

About plugin

  • Plugin page: real-custom-post-...
  • Plugin version: 1.3.72
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Mar 23, 2020
  • Latest release: Nov 28, 2023
  • Number of updates: 126
  • Update frequency: every 10.7 days
  • Top authors: devowl (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

7,000+ active /198,127 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.08MB] [CPU: ▲4.51ms] 75% from 4 tests

Server-side resources used by Real Custom Post Order: Create a custom order for your content
Please take the time to fix the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 609.15ms on /wp-admin/admin.php?page=real-custom-post-order-welcome)
PageMemory (MB)CPU Time (ms)
Home /4.55 ▲1.0945.42 ▲8.71
Dashboard /wp-admin4.39 ▲1.0563.08 ▲5.65
Posts /wp-admin/edit.php4.46 ▲1.1060.44 ▲9.00
Add New Post /wp-admin/post-new.php7.01 ▲1.1391.53 ▼5.32
Media Library /wp-admin/upload.php4.32 ▲1.0943.77 ▲12.56
Real Custom Post Order /wp-admin/admin.php?page=real-custom-post-order-welcome4.58609.15

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 122 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
rcpo-post-active-post
widget_recent-posts
theysaidso_admin_options
rcpo_db_migration
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
rcpo_db_version
rcpo-post-active-wp_block

Browser metrics Passed 4 tests

A check of browser resources used by Real Custom Post Order: Create a custom order for your content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.21 ▼0.071.61 ▼0.0243.07 ▲1.60
Dashboard /wp-admin2,223 ▲425.67 ▼0.0485.91 ▼27.7839.22 ▼2.98
Posts /wp-admin/edit.php2,188 ▲882.96 ▲0.9554.60 ▲13.0338.36 ▲2.42
Add New Post /wp-admin/post-new.php1,551 ▲2023.39 ▲0.24646.98 ▲40.2348.01 ▼8.25
Media Library /wp-admin/upload.php1,425 ▲254.18 ▲0.0297.93 ▲2.4444.87 ▲2.26
Real Custom Post Order /wp-admin/admin.php?page=real-custom-post-order-welcome1,5102.5342.14117.20

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 10 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • rcpo_db_version
    • rcpo_db_migration
    • rcpo-post-active-post
    • rcpo-post-active-wp_block

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 45× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/real-custom-post-order/vendor/devowl-wp/utils/src/Localization.php
    • > /wp-content/plugins/real-custom-post-order/inc/base/others/start.php
    • > /wp-content/plugins/real-custom-post-order/inc/base/others/fallback-rest-api.php
    • > /wp-content/plugins/real-custom-post-order/vendor/devowl-wp/real-utils/src/view/Options.php
    • > /wp-content/plugins/real-custom-post-order/vendor/devowl-wp/real-utils/src/cross/CrossRealMediaLibrary.php
    • > /wp-content/plugins/real-custom-post-order/vendor/devowl-wp/utils/src/Base.php
    • > /wp-content/plugins/real-custom-post-order/inc/base/others/fallback-php-version.php
    • > /wp-content/plugins/real-custom-post-order/vendor/devowl-wp/real-utils/src/Core.php
    • > /wp-content/plugins/real-custom-post-order/vendor/devowl-wp/real-utils/src/RatingHandler.php
    • > /wp-content/plugins/real-custom-post-order/vendor/devowl-wp/real-utils/src/TransientHandler.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PHPSTORM_META\\expectedArguments() in wp-content/plugins/real-custom-post-order/vendor/colinodell/json5/.phpstorm.meta.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'DevOwl\\RealCustomPostOrder\\Vendor\\MatthiasWeb\\WpdbBatch\\AbstractBatch' not found in wp-content/plugins/real-custom-post-order/vendor/matthiasweb/wpdb-batch/src/Update.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

real-custom-post-order/index.php 85% from 13 tests

The main PHP script in "Real Custom Post Order: Create a custom order for your content" version 1.3.72 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("real-custom-post-order.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin10,977 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
Markdown82,72105,102
PHP702183,3884,824
JSON5001,031
CSS50010
JavaScript921810

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.31
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces15
Interfaces0
Traits8
Classes43
▷ Abstract classes511.63%
▷ Concrete classes3888.37%
▷ Final classes37.89%
Methods386
▷ Static methods6917.88%
▷ Public methods31481.35%
▷ Protected methods359.07%
▷ Private methods379.59%
Functions25
▷ Named functions416.00%
▷ Anonymous functions2184.00%
Constants99
▷ Global constants2121.21%
▷ Class constants7878.79%
▷ Public constants78100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin