Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.78ms] Passed 4 tests
An overview of server-side resources used by WP Current Subcategories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.49 ▼5.62 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.58 ▼0.87 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.09 ▲6.70 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.40 ▼4.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.68 ▲0.17 |
About /wp-admin/admin.php?page=wpsubcategories-option-about | 3.22 | 290.57 |
WP Subcategories /wp-admin/admin.php?page=wpsubcategories-options | 3.21 | 28.18 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_wpsubcategories_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Current Subcategories
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.24 ▼1.34 | 1.70 ▼0.22 | 38.09 ▼13.33 |
Dashboard /wp-admin | 2,233 ▲42 | 4.85 ▼0.08 | 109.46 ▲3.12 | 44.41 ▼2.42 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.01 | 41.50 ▲4.95 | 37.13 ▲3.22 |
Add New Post /wp-admin/post-new.php | 1,555 ▲21 | 23.27 ▲0.20 | 610.49 ▼69.85 | 52.76 ▼7.14 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.19 ▲0.01 | 97.19 ▼8.58 | 40.88 ▼3.23 |
About /wp-admin/admin.php?page=wpsubcategories-option-about | 806 | 2.02 | 25.54 | 27.87 |
WP Subcategories /wp-admin/admin.php?page=wpsubcategories-options | 806 | 2.18 | 23.44 | 25.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_wpsubcategories_widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-current-subcategories/wp-current-subcategories.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wpsubcategories-option-about
- > Network (severe)
site/templates/styles/main.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: widget, subcategories, current
wp-current-subcategories/wp-current-subcategories.php Passed 13 tests
"WP Current Subcategories" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Add a widget to show current subcategories
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
Good job! No executable or dangerous file extensions detected91 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 8 | 91 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
No PNG files were detected