84% category-reverse-order

Code Review | Category Reverse Order

WordPress plugin Category Reverse Order scored84%from 54 tests.

About plugin

  • Plugin page: category-reverse-...
  • Plugin version: 0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 3, 2019
  • Latest release: Jun 3, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: janbpunkt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /565 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
This plugin's installer ran successfully

Server metrics [RAM: ▼12.03MB] [CPU: ▼2,480,769.72ms] Passed 4 tests

Server-side resources used by Category Reverse Order
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /51.53 ▲48.029,930,712.70 ▲9,930,669.74
Dashboard /wp-admin3.37 ▼48.1551.47 ▼9,923,069.64
Posts /wp-admin/edit.php3.42 ▲0.0255.78 ▼0.68
Add New Post /wp-admin/post-new.php5.95 ▲0.0294.83 ▼9.44
Media Library /wp-admin/upload.php3.29 ▲0.0238.93 ▲0.88

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Category Reverse Order
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▼0.022.04 ▲0.2742.56 ▲1.18
Dashboard /wp-admin2,211 ▲345.57 ▲0.0383.05 ▼6.4438.32 ▼6.15
Posts /wp-admin/edit.php2,119 ▲192.03 ▲0.0540.00 ▼5.4036.71 ▼0.09
Add New Post /wp-admin/post-new.php1,539 ▲1123.04 ▼0.01707.86 ▲80.3760.98 ▲12.09
Media Library /wp-admin/upload.php1,416 ▲194.14 ▼0.0598.90 ▼8.6244.33 ▲0.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-reverse-order/catrevorder.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: category, order, reverse

category-reverse-order/catrevorder.php 85% from 13 tests

The entry point to "Category Reverse Order" version 0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("category-reverse-order.php" instead of "catrevorder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171473

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin