Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.20ms] Passed 4 tests
A check of server-side resources used by Subpage List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.10 ▲3.54 |
Dashboard /wp-admin | 3.39 ▲0.05 | 47.07 ▼10.63 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.96 ▼3.04 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 81.55 ▼14.32 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 34.36 ▼0.79 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_subpage_list_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Subpage List
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.33 ▼1.47 | 4.61 ▲2.89 | 44.10 ▲2.52 |
Dashboard /wp-admin | 2,206 ▲21 | 4.87 ▼0.02 | 114.51 ▲12.64 | 43.42 ▲2.72 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▲0.02 | 33.41 ▼1.87 | 33.66 ▼7.56 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.22 ▲0.00 | 627.75 ▼33.82 | 58.17 ▲2.85 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.22 ▲0.08 | 97.18 ▼2.92 | 42.95 ▼2.34 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_subpage_list_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Page' not found in wp-content/plugins/subpage-view/inc/class-subpage-list-excerpt-walker.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/subpage-view/inc/class-subpage-list-widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'Walker_Page' not found in wp-content/plugins/subpage-view/inc/class-subpage-list-excerpt-walker.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #1 is required in subpage-view/assets to your readme.txt
subpage-view/subpage-view.php 92% from 13 tests
"Subpage List" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 278 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin339 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 57 | 139 | 339 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 6 | 31.58% |
▷ Public methods | 15 | 78.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 21.05% |
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
PNG images were not found in this plugin