84% easy-posts-order

Code Review | Easy Posts Order

WordPress plugin Easy Posts Order scored84%from 54 tests.

About plugin

  • Plugin page: easy-posts-order
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: May 16, 2022
  • Latest release: May 16, 2022
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: wphelpline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /318 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
Installer ran successfully

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

Analyzing server-side resources used by Easy Posts Order
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.17 ▼4.62
Dashboard /wp-admin3.32 ▼0.0243.34 ▼16.53
Posts /wp-admin/edit.php3.38 ▲0.0245.96 ▼3.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.50 ▼12.67
Media Library /wp-admin/upload.php3.25 ▲0.0238.70 ▲6.86

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Posts Order
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.35 ▲0.001.56 ▼0.5838.89 ▼0.01
Dashboard /wp-admin2,198 ▲215.65 ▲0.0290.81 ▲0.0542.13 ▼0.76
Posts /wp-admin/edit.php2,111 ▲112.14 ▲0.1944.23 ▲5.9034.46 ▲0.28
Add New Post /wp-admin/post-new.php1,526 ▼223.39 ▲0.30650.68 ▼26.6063.67 ▲9.29
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0299.63 ▲2.5544.33 ▼2.88

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-posts-order/easy-posts-order.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-posts-order/includes/functions.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
You can look at the official readme.txt

easy-posts-order/easy-posts-order.php Passed 13 tests

"Easy Posts Order" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
Change custom post types order using JS drag and drop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected101 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2392378
JavaScript15022
CSS1001

PHP code Passed 2 tests

An short overview of 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.50
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin