Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼166.69ms] Passed 4 tests
Server-side resources used by Parent Page Menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 38.58 ▲2.08 |
Dashboard /wp-admin | 3.07 ▲0.01 | 49.68 ▲1.98 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 46.46 ▲8.73 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 96.04 ▼675.25 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 40.78 ▲4.45 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Parent Page Menu: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.25 ▲0.58 | 9.12 ▼0.39 | 47.18 ▼1.39 |
Dashboard /wp-admin | 2,970 ▲36 | 5.94 ▼0.00 | 144.50 ▼10.10 | 108.41 ▼14.43 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.84 ▲0.12 | 74.58 ▲6.30 | 86.57 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,581 ▼102 | 17.99 ▼0.81 | 416.10 ▲16.14 | 128.56 ▲21.34 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.03 | 168.55 ▼0.04 | 121.31 ▲6.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/page-menu-ancestor-tree/parentPageMenu.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Donate link: Invalid URI found ("")
- Screenshots: Add an image for screenshot #1 (screenshot)
page-menu-ancestor-tree/parentPageMenu.php 85% from 13 tests
Analyzing the main PHP file in "Parent Page Menu" version 0.1
It is important to fix the following:
- Version: The plugin version was not found
- Main file name: It is recommended to name the main PHP file as the plugin slug ("page-menu-ancestor-tree.php" instead of "parentPageMenu.php")
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 plugin118 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 41 | 60 |
CSS | 1 | 1 | 4 | 58 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
parentPageMenubg.png | 4.13KB | 0.08KB | ▼ 97.95% |
assets/screenshot.png | 49.83KB | 13.99KB | ▼ 71.92% |