Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/pages-order/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
Server metrics [RAM: ▼1.27MB] [CPU: ▼53.14ms] Passed 4 tests
An overview of server-side resources used by Pages Order
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.72 ▼0.74 | 6.15 ▼34.19 |
Dashboard /wp-admin | 2.74 ▼0.57 | 7.81 ▼46.41 |
Posts /wp-admin/edit.php | 2.74 ▼0.62 | 8.51 ▼41.86 |
Add New Post /wp-admin/post-new.php | 2.74 ▼3.15 | 7.36 ▼90.10 |
Media Library /wp-admin/upload.php | 2.74 ▼0.49 | 8.23 ▼26.11 |
Order /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order | 2.74 | 8.54 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Illegal file modification found: 4 files (57.51KB) outside of "wp-content/plugins/pages-order/" and "wp-content/uploads/"
- (new file) wp-content/sedlex/inline_styles/c1ea5308bc63252ad03e034a1d0db29299959e63.css
- (new file) wp-content/sedlex/inline_styles/bc949ac5d0342b9fe4ffe5494c1066695980f06c.css
- (new file) wp-content/sedlex/inline_styles/c03cbbde92df5cf2d123551f6f8f32b6e4a3ff99.css
- (new file) wp-content/sedlex/inline_scripts/af58ea44541f302acd6328aec8d7a77becbaa3c3.js
Filesystem: 171 new files
Database: no new tables, 9 new options
New WordPress options |
---|
plugin_error_on_activation |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
coreSLframework_options |
db_upgraded |
theysaidso_admin_options |
pages_order_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pages Order
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.20 ▼1.20 | 1.91 ▲0.07 | 40.88 ▼4.13 |
Dashboard /wp-admin | 2,240 ▲55 | 4.85 ▼1.06 | 109.74 ▲5.95 | 38.58 ▼5.88 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.05 ▲0.06 | 41.24 ▲4.91 | 34.90 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 17.40 ▼0.12 | 667.42 ▼22.65 | 48.99 ▼7.74 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.22 ▲0.04 | 94.52 ▼6.16 | 42.82 ▼2.37 |
Order /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order | 976 | 2.31 | 49.03 | 55.80 |
Pages Order /wp-admin/sedlex.php?page=pages-order/pages-order.php | 26 | 0.44 | 0.08 | 13.27 |
About... /wp-admin/sedlex.php | 26 | 0.44 | 0.14 | 5.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/pages-order/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
- Zombie WordPress options were found after uninstall: 8 options
- coreSLframework_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- plugin_error_on_activation
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 0% 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)
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/admin_table.class.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Table has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/admin_table.class.php+317
Methods with the same name as their class will not be constructors in a future version of PHP; adminCell has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/tabs.class.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Tabs has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/box.class.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Box has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/browser.class.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_BrowsersOsDetection has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/feedback.class.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Feedback has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/otherplugins.class.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_OtherPlugins has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/parameters.class.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Parameters has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/popup.class.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Popup has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/progress_bar.class.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Progressbar has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/translation.class.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Translation has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/text_diff.class.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Textdiff has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/tree.class.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; SLFramework_Treelist has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=page&page=edit_pages-order/pages-order
- > Deprecated in wp-content/plugins/pages-order/core/utils.class.php+305
Array and string offset access syntax with curly braces is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pages-order/core.php
- > /wp-content/plugins/pages-order/pages-order.php
- > /wp-content/plugins/pages-order/core.class.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/pages-order/core/templates/my-plugin.php on line 18
- > PHP Warning
require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/pages-order/core/templates/my-plugin.php on line 18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/sedlex.php?page=pages-order/pages-order.php
- > Network (severe)
wp-admin/sedlex.php?page=pages-order/pages-order.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/sedlex.php
- > Network (severe)
wp-admin/sedlex.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The tree view in the admin dashboard), #2 (The configuration page), #3 (The tree view displayed in the front pages), #4 (The breadcrumb displayed in the front pages)
pages-order/pages-order.php 92% from 13 tests
This is the main PHP file of "Pages Order" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 215 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected17,092 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 36 | 3,944 | 0 | 8,659 |
PHP | 19 | 976 | 1,774 | 6,914 |
JavaScript | 5 | 206 | 229 | 778 |
CSS | 12 | 109 | 13 | 626 |
Markdown | 1 | 20 | 0 | 84 |
JSON | 1 | 0 | 0 | 29 |
INI | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 51.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 7.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 35 | 22.01% |
▷ Public methods | 156 | 98.11% |
▷ Protected methods | 3 | 1.89% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
37 PNG files occupy 0.50MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/arrow_down_s.png | 0.27KB | 0.27KB | ▼ 1.79% |
core/img/tree_node_minus.png | 0.14KB | 0.12KB | ▼ 15.17% |
core/img/arrow_up.png | 0.24KB | 0.27KB | 0.00% |
img/icon-256x256.png | 34.17KB | 15.10KB | ▼ 55.79% |
img/banner-1544x500.png | 154.99KB | 84.76KB | ▼ 45.31% |