84% anything-order

Code Review | Anything Order

WordPress plugin Anything Order scored84%from 54 tests.

About plugin

  • Plugin page: anything-order
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: May 7, 2014
  • Latest release: May 9, 2014
  • Number of updates: 11
  • Update frequency: every 0.5 days
  • Top authors: pmwp (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

500+ active /8,994 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Anything Order
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.37 ▲8.32
Dashboard /wp-admin3.41 ▲0.1146.46 ▼1.13
Posts /wp-admin/edit.php3.54 ▲0.1847.35 ▼3.68
Add New Post /wp-admin/post-new.php5.55 ▼0.3463.25 ▼24.00
Media Library /wp-admin/upload.php3.33 ▲0.1035.75 ▲0.42

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Anything Order: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3714.07 ▼0.571.97 ▼0.0158.14 ▲14.70
Dashboard /wp-admin2,206 ▲325.62 ▲0.0496.64 ▲12.7745.83 ▲1.55
Posts /wp-admin/edit.php2,177 ▲772.48 ▲0.4938.27 ▲2.9739.86 ▲2.28
Add New Post /wp-admin/post-new.php1,575 ▲4922.69 ▼1.01536.99 ▼93.4756.42 ▲6.45
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.03105.15 ▲4.1047.07 ▲2.20

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Anything_Order_Base' not found in wp-content/plugins/anything-order/modules/taxonomy/class.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Anything_Order_Base' not found in wp-content/plugins/anything-order/modules/post/class.php:9

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 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: Add descriptions for screenshots #2, #3 in anything-order/assets to your readme.txt
Please take inspiration from this readme.txt

anything-order/anything-order.php Passed 13 tests

The main file in "Anything Order" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
This plugin allows you to arrange any post types and taxonomies with drag and drop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected746 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5136377430
JavaScript1280135
CSS1282113
Markdown125039
PO File14429

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity17.50
▷ Minimum class complexity2.00
▷ Maximum class complexity43.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods34
▷ Static methods12.94%
▷ Public methods1955.88%
▷ Protected methods1544.12%
▷ Private methods00.00%
Functions0
▷ Named functions00.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