Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/sf-category-menu/sf-category-menu.php+103
Methods with the same name as their class will not be constructors in a future version of PHP; SFCategoryMenuWidget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼56.78ms] Passed 4 tests
Analyzing server-side resources used by SF Category Menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.34 | 4.88 ▼38.95 |
Dashboard /wp-admin | 2.15 ▼1.16 | 7.32 ▼47.67 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 5.86 ▼51.86 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 6.53 ▼88.65 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 6.31 ▼36.25 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_sfcategorymenuwidget |
Browser metrics Passed 4 tests
Checking browser requirements for SF Category Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 13.46 ▼0.89 | 8.51 ▲6.51 | 46.46 ▲4.05 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▲0.09 | 98.77 ▲4.89 | 41.55 ▼4.83 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.01 ▼0.08 | 37.33 ▲0.20 | 33.06 ▼5.60 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▲0.00 | 696.06 ▼1.38 | 50.58 ▼4.13 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.22 ▲0.04 | 110.13 ▲2.77 | 44.09 ▲0.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/sf-category-menu/sf-category-menu.php+103
Methods with the same name as their class will not be constructors in a future version of PHP; SFCategoryMenuWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_sfcategorymenuwidget
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/sf-category-menu/sf-category-menu.php:103
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
9 plugin tags: pages, posts, menu, treeview, list...
sf-category-menu/sf-category-menu.php Passed 13 tests
The main file in "SF Category Menu" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Easy treeview menu for WordPress categories, with catergory caching
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
Success! There were no dangerous files found in this plugin286 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 17 | 268 |
PO File | 1 | 0 | 0 | 15 |
JavaScript | 2 | 0 | 24 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
No PNG images were found in this plugin