Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.50ms] Passed 4 tests
An overview of server-side resources used by Plugin Categories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.25 ▲1.12 |
Dashboard /wp-admin | 3.39 ▲0.05 | 49.40 ▼19.32 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 53.47 ▲3.61 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 97.47 ▼7.90 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.40 ▲0.09 |
Categories /wp-admin/edit-tags.php?taxonomy=plugin_category | 3.12 | 26.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Plugin Categories
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.12 ▼1.26 | 4.61 ▲2.83 | 44.77 ▲3.21 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.21 | 108.07 ▲4.71 | 42.11 ▼4.77 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.04 | 39.95 ▲2.51 | 35.67 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.26 ▼4.82 | 627.68 ▼63.52 | 53.78 ▲5.16 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.20 ▲0.11 | 95.71 ▼18.35 | 43.27 ▲0.93 |
Categories /wp-admin/edit-tags.php?taxonomy=plugin_category | 28 | 0.44 | 0.06 | 3.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/plugin-categories/plugin-categories.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Plugin_Categories' not found in wp-content/plugins/plugin-categories/classes/views.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/edit-tags.php?taxonomy=plugin_category
- > Network (severe)
wp-admin/edit-tags.php?taxonomy=plugin_category - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (The plugin list with categories.)
plugin-categories/plugin-categories.php Passed 13 tests
The entry point to "Plugin Categories" version 0.2.2 is a PHP file that has certain tags in its header comment area
60 characters long description:
Categorize your WordPress Plugins just like you would posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected361 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 247 | 153 | 349 |
CSS | 1 | 3 | 0 | 6 |
JavaScript | 1 | 5 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 38.62KB | 12.67KB | ▼ 67.19% |