Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.87ms] Passed 4 tests
An overview of server-side resources used by FV Top Level Categories
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.96 ▼7.05 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.91 ▼3.24 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.09 ▼7.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.15 ▼10.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.65 ▲2.43 |
FV Top Level Categories /wp-admin/options-general.php?page=fv_top_level_cats | 3.22 | 30.62 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for FV Top Level Categories
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.56 ▼1.23 | 1.67 ▼0.28 | 40.98 ▼0.86 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.99 | 107.79 ▼6.63 | 42.61 ▼3.66 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.00 | 39.74 ▼1.41 | 34.98 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 23.30 ▼0.04 | 676.19 ▼20.03 | 56.07 ▲1.01 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▲0.02 | 96.28 ▼2.72 | 40.30 ▼3.98 |
FV Top Level Categories /wp-admin/options-general.php?page=fv_top_level_cats | 767 | 2.03 | 26.02 | 26.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fv-top-level-cats/top-level-cats.php:13
- > 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 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: categories, permalink
fv-top-level-cats/top-level-cats.php 77% from 13 tests
The primary PHP file in "FV Top Level Categories" version 1.9.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fv-top-level-cats.php" instead of "top-level-cats.php")
- Description: The description should be shorter than 140 characters (currently 159 characters long)
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected468 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 112 | 30 | 335 |
PO File | 3 | 22 | 22 | 120 |
Markdown | 1 | 9 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 8 | |
▷ Static methods | 4 | 50.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin