10% custom-post-list-order

Code Review | Custom Post List Order by BLOG BOOT CAMP

WordPress plugin Custom Post List Order by BLOG BOOT CAMP scored10%from 54 tests.

About plugin

  • Plugin page: custom-post-list-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Aug 11, 2021
  • Latest release: Oct 27, 2021
  • Number of updates: 14
  • Update frequency: every 5.6 days
  • Top authors: alexbootcamp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /405 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/custom-post-list-order/custom-post-list-order.php+132
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.99ms] Passed 4 tests

Analyzing server-side resources used by Custom Post List Order by BLOG BOOT CAMP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.18 ▼2.09
Dashboard /wp-admin3.35 ▲0.0447.22 ▼2.40
Posts /wp-admin/edit.php3.40 ▲0.0449.31 ▼3.09
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.52 ▼16.37
Media Library /wp-admin/upload.php3.27 ▲0.0336.47 ▲0.09
Custom Post List Order /wp-admin/options-general.php?page=custom-post-list-order3.2432.74

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
custom-post-list-order
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Custom Post List Order by BLOG BOOT CAMP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.161.57 ▼0.0741.29 ▲1.19
Dashboard /wp-admin2,207 ▲185.77 ▲0.8695.48 ▼11.6939.51 ▼3.60
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0739.35 ▲3.9135.89 ▼1.74
Add New Post /wp-admin/post-new.php1,517 ▼217.89 ▼5.26673.20 ▼24.4666.38 ▲11.88
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0296.57 ▼12.1643.91 ▼3.59
Custom Post List Order /wp-admin/options-general.php?page=custom-post-list-order8522.0824.3525.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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/custom-post-list-order/includes/setting.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-post-list-order/custom-post-list-order.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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: order posts, order posts list, post list order, custom category order, order post list...

custom-post-list-order/custom-post-list-order.php Passed 13 tests

This is the main PHP file of "Custom Post List Order by BLOG BOOT CAMP" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
78 characters long description:
Sort the posted articles in order of published date or update date, page view.

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
Everything looks great! No dangerous files found in this plugin233 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24832233

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.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
There are no PNG files in this plugin