Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.34ms] Passed 4 tests
Server-side resources used by WP Page Tree
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.76 ▲3.52 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.37 ▼12.75 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.15 ▲5.28 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.09 ▼15.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.73 ▼4.38 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_wp_page_tree |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Page Tree
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.70 ▲0.09 | 1.66 ▲0.16 | 46.22 ▲4.99 |
Dashboard /wp-admin | 2,195 ▲15 | 5.57 ▼0.08 | 82.94 ▼3.67 | 38.94 ▼3.13 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.04 | 39.99 ▲5.61 | 34.58 ▲2.75 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.09 ▼0.49 | 669.10 ▼41.73 | 62.19 ▲2.45 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▲0.04 | 106.05 ▲10.38 | 45.49 ▲0.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_wp_page_tree
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-page-tree/wp-page-tree.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: page tree, site navigation
wp-page-tree/wp-page-tree.php Passed 13 tests
The main PHP file in "WP Page Tree" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
Widget to display a navigable tree of pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin135 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 22 | 105 |
CSS | 1 | 3 | 3 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 2 | 28.57% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin