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
Installer ran successfully
Server metrics [RAM: ▼0.11MB] [CPU: ▼7.87ms] Passed 4 tests
Server-side resources used by Smart Categories
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▼0.58 | 18.58 ▼22.10 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.41 ▼5.11 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 54.52 ▲4.03 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 93.48 ▼5.19 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.38 ▲0.91 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 11 new options
New WordPress options |
---|
AutoCatRuleIDs |
can_compress_scripts |
AutoCatRule1Phrase |
AutoCatLastSorted |
widget_recent-posts |
AutoCatActive |
AutoCatRule1Cat |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Categories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.71 ▲0.36 | 1.81 ▼0.28 | 40.63 ▲0.93 |
Dashboard /wp-admin | 2,214 ▲43 | 5.56 ▼0.11 | 94.58 ▼5.77 | 42.12 ▼4.39 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 1.98 ▲0.01 | 38.57 ▲1.74 | 34.44 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.60 ▲0.46 | 622.85 ▼42.40 | 65.38 ▲17.54 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.20 ▲0.04 | 100.18 ▼7.49 | 44.51 ▼2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-categories/SmartCategories.php:13
- > 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 96% from 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: taxonomy, categories, posts
smart-categories/SmartCategories.php 92% from 13 tests
This is the main PHP file of "Smart Categories" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("smart-categories.php" instead of "SmartCategories.php")
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
There were no executable files found in this plugin269 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 12 | 269 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin