Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/cms-page-order/cms-page-order.php+353
Declaration of PO_Walker::start_lvl(&$output, $depth) should be compatible with Walker_Page::start_lvl(&$output, $depth = 0, $args = Array)
Server metrics [RAM: ▼1.73MB] [CPU: ▼188.86ms] Passed 4 tests
Analyzing server-side resources used by CMS Page Order
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.91 ▼0.93 | 6.78 ▼30.55 |
Dashboard /wp-admin | 1.92 ▼1.14 | 10.67 ▼35.03 |
Posts /wp-admin/edit.php | 1.93 ▼1.20 | 6.33 ▼46.79 |
Add New Post /wp-admin/post-new.php | 1.92 ▼3.51 | 6.52 ▼643.08 |
Media Library /wp-admin/upload.php | 1.92 ▼1.08 | 6.01 ▼26.56 |
Page Order /wp-admin/edit.php?post_type=page&page=order-page | 1.93 | 6.32 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for CMS Page Order
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲102 | 16.23 ▲0.77 | 9.31 ▼0.08 | 51.75 ▲4.88 |
Dashboard /wp-admin | 2,981 ▲50 | 5.88 ▼0.07 | 140.29 ▼13.36 | 117.67 ▼1.96 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.69 ▼0.00 | 69.40 ▼1.65 | 95.33 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,693 ▲78 | 18.79 ▼2.09 | 382.16 ▲99.92 | 119.29 ▲10.10 |
Media Library /wp-admin/upload.php | 1,819 ▲12 | 5.02 ▲0.02 | 150.14 ▼11.39 | 125.29 ▼3.52 |
Page Order /wp-admin/edit.php?post_type=page&page=order-page | 1,133 | 2.63 | 71.22 | 80.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/cms-page-order/cms-page-order.php+353
Declaration of PO_Walker::start_lvl(&$output, $depth) should be compatible with Walker_Page::start_lvl(&$output, $depth = 0, $args = Array)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=page&page=order-page
- > Warning in wp-content/plugins/cms-page-order/cms-page-order.php+353
Declaration of PO_Walker::start_lvl(&$output, $depth) should be compatible with Walker_Page::start_lvl(&$output, $depth = 0, $args = Array)
- > GET request to /wp-admin/edit.php?post_type=page&page=order-page
- > Warning in wp-content/plugins/cms-page-order/cms-page-order.php+357
Declaration of PO_Walker::end_lvl(&$output, $depth) should be compatible with Walker_Page::end_lvl(&$output, $depth = 0, $args = Array)
- > GET request to /wp-admin/edit.php?post_type=page&page=order-page
- > Warning in wp-content/plugins/cms-page-order/cms-page-order.php+361
Declaration of PO_Walker::start_el(&$output, $page, $depth, $args) should be compatible with Walker_Page::start_el(&$output, $page, $depth = 0, $args = Array, $current_page = 0)
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cms-page-order/cms-page-order.php:37
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cms-page-order/cms-page-order.php on line 35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Pages displayed as a tree.), #2 (Filter hook to set the maximum number of nesting levels.), #3 (Post status labels with support for custom statuses.)
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
cms-page-order/cms-page-order.php Passed 13 tests
The primary PHP file in "CMS Page Order" version 0.3.3 is used by WordPress to initiate all plugin functionality
56 characters long description:
Change the page order with quick and easy 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
Success! There were no dangerous files found in this plugin795 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 83 | 57 | 325 |
CSS | 3 | 17 | 0 | 200 |
PO File | 3 | 43 | 63 | 138 |
JavaScript | 2 | 18 | 4 | 132 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 8.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/images/page.png | 0.22KB | 0.19KB | ▼ 17.03% |
screenshot-1.png | 40.23KB | 14.37KB | ▼ 64.28% |
screenshot-2.png | 29.98KB | 10.72KB | ▼ 64.24% |
styles/images/lock.png | 0.22KB | 0.19KB | ▼ 11.26% |
screenshot-3.png | 46.93KB | 16.74KB | ▼ 64.34% |