Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼1.59ms] Passed 4 tests
An overview of server-side resources used by Post Types Order
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 39.19 ▲5.23 |
Dashboard /wp-admin | 3.51 ▲0.20 | 47.12 ▼1.35 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 50.99 ▲0.67 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 86.43 ▼10.91 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.99 ▲6.20 |
Re-Order /wp-admin/upload.php?page=order-post-types-attachment | 3.41 | 37.50 |
Re-Order /wp-admin/edit.php?page=order-post-types-post | 3.43 | 36.73 |
Re-Order /wp-admin/edit.php?post_type=wp_navigation&page=order-post-types-wp_navigation | 3.41 | 37.32 |
Post Types Order /wp-admin/options-general.php?page=cpto-options | 3.40 | 32.77 |
Re-Order /wp-admin/edit.php?post_type=wp_block&page=order-post-types-wp_block | 3.41 | 32.36 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Types Order
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲51 | 14.00 ▼0.28 | 1.69 ▼0.05 | 41.80 ▼0.73 |
Dashboard /wp-admin | 2,218 ▲41 | 5.72 ▲0.13 | 92.65 ▼10.40 | 73.56 ▲31.12 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.95 ▲0.01 | 39.53 ▼0.91 | 33.28 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,699 ▲173 | 21.85 ▼1.54 | 748.18 ▲64.29 | 56.10 ▼8.44 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.24 ▲0.02 | 99.94 ▼2.25 | 77.57 ▲34.65 |
Re-Order /wp-admin/upload.php?page=order-post-types-attachment | 871 | 1.92 | 31.49 | 28.14 |
Re-Order /wp-admin/edit.php?page=order-post-types-post | 883 | 1.95 | 34.90 | 27.21 |
Re-Order /wp-admin/edit.php?post_type=wp_navigation&page=order-post-types-wp_navigation | 873 | 1.90 | 35.45 | 30.37 |
Post Types Order /wp-admin/options-general.php?page=cpto-options | 1,224 | 2.17 | 27.24 | 31.25 |
Re-Order /wp-admin/edit.php?post_type=wp_block&page=order-post-types-wp_block | 870 | 1.91 | 30.46 | 27.22 |
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
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-types-order/post-types-order.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The ReOrder interface through which the sort can be created.), #2 (Sort can be managed within default WordPress post type interface.)
post-types-order/post-types-order.php Passed 13 tests
The primary PHP file in "Post Types Order" version 2.1.1 is used by WordPress to initiate all plugin functionality
93 characters long description:
Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
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
Good job! No executable or dangerous file extensions detected1,196 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 398 | 130 | 938 |
PO File | 1 | 42 | 43 | 118 |
JavaScript | 1 | 16 | 1 | 49 |
SVG | 1 | 1 | 0 | 33 |
CSS | 3 | 7 | 0 | 31 |
JSON | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 23.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 112.78KB | 54.43KB | ▼ 51.74% |
screenshot-1.png | 50.19KB | 38.77KB | ▼ 22.74% |
images/menu-icon.png | 3.75KB | 0.93KB | ▼ 75.20% |