84% gr-order-category-post

Code Review | GR Order Category Post

WordPress plugin GR Order Category Post scored 84% from 54 tests.

About plugin

  • Plugin page: gr-order-category...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Sep 17, 2023
  • Number of updates: 28
  • Update frequency: every 74.4 days
  • Top authors: Felln (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 3,364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.24ms] Passed 4 tests

This is a short check of server-side resources used by GR Order Category Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.13 ▼9.25
Dashboard /wp-admin3.31 ▲0.0147.29 ▼0.78
Posts /wp-admin/edit.php3.36 ▲0.0149.14 ▲0.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.26 ▲6.17
Media Library /wp-admin/upload.php3.23 ▲0.0036.81 ▲4.12

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
GROrderkey
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GR Order Category Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.11 ▼1.271.67 ▼0.5539.83 ▼7.99
Dashboard /wp-admin2,207 ▲195.83 ▼0.0396.18 ▼4.4740.28 ▼2.83
Posts /wp-admin/edit.php2,090 ▲12.01 ▲0.0138.64 ▲2.9036.63 ▲4.25
Add New Post /wp-admin/post-new.php1,545 ▲3118.09 ▲0.53647.27 ▼25.5155.08 ▲6.04
Media Library /wp-admin/upload.php1,392 ▲44.15 ▼0.0994.98 ▼20.7947.02 ▼1.48
GR Order Category Post /wp-admin/options-general.php?page=GR Order Category Post7762.0524.8427.16

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gr-order-category-post/gr-order-category-post.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

gr-order-category-post/gr-order-category-post.php Passed 13 tests

This is the main PHP file of "GR Order Category Post" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
This plugin let you change the order from a category to an alphabetical order (A-Z).

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
Success! There were no dangerous files found in this plugin63 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2283263

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin