89% wt-quick-reorder

Code Review | WT Quick Reorder

WordPress plugin WT Quick Reorder scored89%from 54 tests.

About plugin

  • Plugin page: wt-quick-reorder
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 30, 2023
  • Latest release: Sep 30, 2023
  • Number of updates: 2
  • Update frequency: every 8.5 days
  • Top authors: webbytemplate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /25 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by WT Quick Reorder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.79 ▲5.43
Dashboard /wp-admin3.33 ▼0.0250.01 ▼36.63
Posts /wp-admin/edit.php3.38 ▲0.0247.14 ▼3.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.69 ▼6.99
Media Library /wp-admin/upload.php3.25 ▲0.0233.93 ▼2.47

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WT Quick Reorder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲4214.22 ▼0.161.84 ▲0.1043.65 ▲3.07
Dashboard /wp-admin2,219 ▲344.90 ▼0.92136.05 ▲33.8154.17 ▲14.37
Posts /wp-admin/edit.php2,102 ▲132.01 ▼0.0140.65 ▲7.6643.07 ▲11.00
Add New Post /wp-admin/post-new.php1,375 ▼13920.50 ▲2.93589.26 ▼46.8038.65 ▼21.84
Media Library /wp-admin/upload.php1,401 ▲164.22 ▲0.11110.48 ▲3.6544.25 ▲2.54

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Requires php: Invalid plugin version format
You can take inspiration from this readme.txt

wt-quick-reorder/wt-quick-reorder.php 92% from 13 tests

This is the main PHP file of "WT Quick Reorder" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 153 characters long)

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
Success! There were no dangerous files found in this plugin4,981 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP499601,4212,653
CSS788901,889
JavaScript57168339
SVG4180100

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity45.00
▷ Minimum class complexity1.00
▷ Maximum class complexity342.00
Average method complexity7.11
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods72
▷ Static methods22.78%
▷ Public methods7097.22%
▷ Protected methods00.00%
▷ Private methods22.78%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/checkbox-icon.png0.98KB0.18KB▼ 81.21%