83% custom-order-for-posts

Code Review | Custom Order For Post List

WordPress plugin Custom Order For Post List scored83%from 54 tests.

About plugin

  • Plugin page: custom-order-for-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2022
  • Latest release: Mar 11, 2023
  • Number of updates: 5
  • Update frequency: every 66.6 days
  • Top authors: rajatdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /233 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.32ms] Passed 4 tests

Analyzing server-side resources used by Custom Order For Post List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.87 ▼4.92
Dashboard /wp-admin3.32 ▼0.0247.33 ▼16.58
Posts /wp-admin/edit.php3.37 ▲0.0246.46 ▼7.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.73 ▼12.57
Media Library /wp-admin/upload.php3.24 ▲0.0236.82 ▲0.03

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/custom-order-for-posts/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Order For Post List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲913.22 ▼1.381.76 ▼0.4450.57 ▲8.21
Dashboard /wp-admin2,224 ▲184.86 ▼1.02108.88 ▼14.2240.01 ▼20.60
Posts /wp-admin/edit.php2,108 ▲52.02 ▼0.0233.79 ▼6.7535.95 ▼0.85
Add New Post /wp-admin/post-new.php6,231 ▲4,68619.17 ▼4.22938.08 ▲300.9555.60 ▲5.24
Media Library /wp-admin/upload.php1,403 ▲64.12 ▼0.15108.06 ▼2.0748.20 ▲2.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/custom-order-for-posts/custom-order-for-posts.php

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

custom-order-for-posts/custom-order-for-posts.php 92% from 13 tests

This is the main PHP file of "Custom Order For Post List" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 185 characters long)

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 plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192970

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.73
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin