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.85MB] [CPU: ▲6.25ms] Passed 4 tests
An overview of server-side resources used by Nested Pages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.07 ▼0.65 |
Dashboard /wp-admin | 4.41 ▲1.11 | 57.97 ▲8.09 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 55.70 ▲10.76 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.11 | 102.72 ▲11.45 |
Media Library /wp-admin/upload.php | 4.33 ▲1.10 | 42.79 ▲6.78 |
Nested Pages /wp-admin/options-general.php?page=nested-pages-settings | 4.32 | 40.68 |
All Pages /wp-admin/admin.php?page=nestedpages | 4.66 | 60.70 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 245 new files
Database: no new tables, 9 new options
New WordPress options |
---|
nestedpages_posttypes |
widget_theysaidso_widget |
theysaidso_admin_options |
nestedpages_version |
widget_recent-comments |
can_compress_scripts |
nestedpages_menusync |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Nested Pages
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲53 | 14.16 ▼0.18 | 1.78 ▲0.09 | 44.20 ▼1.97 |
Dashboard /wp-admin | 2,205 ▲34 | 5.52 ▼0.01 | 90.02 ▼14.81 | 43.04 ▼3.59 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.01 ▲0.00 | 32.89 ▼3.34 | 35.83 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 25.31 ▲2.02 | 615.38 ▼45.94 | 74.72 ▲22.34 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.19 ▲0.09 | 96.67 ▼4.33 | 42.73 ▲1.34 |
Nested Pages /wp-admin/options-general.php?page=nested-pages-settings | 1,150 | 2.42 | 41.89 | 37.62 |
All Pages /wp-admin/admin.php?page=nestedpages | 2,701 | 2.56 | 47.26 | 40.27 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- nestedpages_version
- nestedpages_posttypes
- nestedpages_menusync
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 81× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'NestedPages\\Form\\Listeners\\BaseHandler' not found in wp-content/plugins/wp-nested-pages/app/Form/Listeners/ResetUserPreferences.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/wp-nested-pages/vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-nested-pages/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-nested-pages/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'NestedPages\\Entities\\Confirmation\\ConfirmationInterface' not found in wp-content/plugins/wp-nested-pages/app/Entities/Confirmation/LinkDeletedConfirmation.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-nested-pages/app/Views/partials/row-link.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_type_object() in wp-content/plugins/wp-nested-pages/app/Views/forms/link-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-nested-pages/app/Views/partials/list-header.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-nested-pages/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'NestedPages\\Form\\Listeners\\BaseHandler' not found in wp-content/plugins/wp-nested-pages/app/Form/Listeners/BulkEdit.php:9
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: nested, quick edit, admin, pages, page tree...
wp-nested-pages/nestedpages.php 85% from 13 tests
The primary PHP file in "Nested Pages" version 3.2.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 216 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-nested-pages.php" instead of "nestedpages.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected17,997 lines of code in 220 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 1,353 | 2,632 | 9,082 |
PO File | 14 | 1,915 | 2,630 | 4,439 |
JavaScript | 33 | 640 | 553 | 4,129 |
JSON | 3 | 0 | 0 | 138 |
Markdown | 1 | 32 | 0 | 130 |
SVG | 18 | 0 | 0 | 47 |
XML | 1 | 2 | 0 | 23 |
YAML | 1 | 3 | 0 | 8 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 118 | |
▷ Abstract classes | 5 | 4.24% |
▷ Concrete classes | 113 | 95.76% |
▷ Final classes | 0 | 0.00% |
Methods | 519 | |
▷ Static methods | 9 | 1.73% |
▷ Public methods | 328 | 63.20% |
▷ Protected methods | 20 | 3.85% |
▷ Private methods | 171 | 32.95% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
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.05MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/datepicker-arrow-prev.png | 1.05KB | 0.21KB | ▼ 79.98% |
assets/images/border.png | 0.91KB | 0.08KB | ▼ 90.97% |
assets/icon-128x128.png | 4.68KB | 2.30KB | ▼ 50.77% |
assets/banner-772x250.png | 43.06KB | 16.67KB | ▼ 61.28% |
assets/images/datepicker-arrow-next.png | 1.05KB | 0.19KB | ▼ 81.94% |