72% easy-post-re-order

Code Review | Easy Post Re-Order

WordPress plugin Easy Post Re-Order scored72%from 54 tests.

About plugin

  • Plugin page: easy-post-re-order
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: Feb 14, 2022
  • Number of updates: 10
  • Update frequency: every 184.4 days
  • Top authors: umairsaleem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,197 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲1.38ms] Passed 4 tests

An overview of server-side resources used by Easy Post Re-Order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1339.75 ▼1.39
Dashboard /wp-admin3.46 ▲0.1657.28 ▲7.16
Posts /wp-admin/edit.php3.58 ▲0.2255.86 ▲3.59
Add New Post /wp-admin/post-new.php6.07 ▲0.18100.09 ▼2.00
Media Library /wp-admin/upload.php3.39 ▲0.1641.73 ▲5.33
Posts Re-Order /wp-admin/edit.php?page=order-post-types-post3.3333.88
Images Re-Order /wp-admin/upload.php?page=order-post-types-attachment3.3334.52
Re-Order /wp-admin/edit.php?post_type=wp_navigation&page=order-post-types-wp_navigation3.3334.73
Re-Order /wp-admin/edit.php?post_type=wp_block&page=order-post-types-wp_block3.3337.96

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
espro_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Easy Post Re-Order
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3414.35 ▼0.212.02 ▲0.0241.29 ▲0.92
Dashboard /wp-admin2,211 ▲315.56 ▼0.0389.44 ▼2.6477.66 ▲37.07
Posts /wp-admin/edit.php2,143 ▲402.27 ▲0.2439.46 ▼1.4135.61 ▼3.96
Add New Post /wp-admin/post-new.php1,559 ▲2223.08 ▲4.74742.99 ▲127.1652.44 ▼9.09
Media Library /wp-admin/upload.php1,432 ▲354.14 ▼0.05104.54 ▲3.0973.77 ▲31.54
Posts Re-Order /wp-admin/edit.php?page=order-post-types-post1,1106.75204.6542.84
Images Re-Order /wp-admin/upload.php?page=order-post-types-attachment1,1106.75183.1533.28
Re-Order /wp-admin/edit.php?post_type=wp_navigation&page=order-post-types-wp_navigation1,1106.74126.4736.25
Re-Order /wp-admin/edit.php?post_type=wp_block&page=order-post-types-wp_block1,1106.79151.7633.97

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • espro_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wp_block&page=order-post-types-wp_block
    • > Notice in wp-content/plugins/easy-post-re-order/files/easysoftonic-my-easy-class.php+364
    Undefined variable: post_id

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/easy-post-re-order/files/easysoftonic-my-walkers.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-post-re-order/easy-post-re-order.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wp_block&page=order-post-types-wp_block
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wp_block&page=order-post-types-wp_block
    • > Network (severe)
    wp-content/plugins/easy-post-re-order/css/cpt-archive-dd.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Re-Order Options interface.), #2 (The Re-Order Move Posts and Update.), #3 (The Re-Order Drag & Drop Sortable within Post Type archive interface.)
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
Please take inspiration from this readme.txt

easy-post-re-order/easy-post-re-order.php Passed 13 tests

The main file in "Easy Post Re-Order" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
112 characters long description:
This Easy Post Re-order, Re order your Posts and Media (Images) using the Drag and Drop easily update your sort.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,610 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PO File175596701,762
PHP527082776
JavaScript114138
CSS111134

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity25.00
▷ Minimum class complexity2.00
▷ Maximum class complexity48.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png78.75KB40.85KB▼ 48.12%
images/menu-icon.png1.13KB0.44KB▼ 61.35%
screenshot-2.png27.55KB11.95KB▼ 56.61%
screenshot-3.png23.18KB11.18KB▼ 51.75%