Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼3.41ms] Passed 4 tests
Server-side resources used by TempTool [Show Current Template Info]
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 40.02 ▲0.44 |
Dashboard /wp-admin | 3.61 ▲0.31 | 51.80 ▲0.08 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 52.11 ▲0.76 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 86.39 ▼14.93 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 50.70 ▲13.14 |
TempTool /wp-admin/options-general.php?page=current-template-name | 3.44 | 33.06 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
TempTool [Show Current Template Info]: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.69 ▲0.28 | 2.04 ▲0.33 | 41.07 ▼3.40 |
Dashboard /wp-admin | 2,199 ▲25 | 5.65 ▼0.03 | 98.00 ▲14.75 | 46.31 ▲4.33 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.04 ▲0.02 | 38.99 ▲4.16 | 34.26 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.20 ▲0.14 | 711.33 ▲48.69 | 59.83 ▲10.82 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.14 ▼0.07 | 123.26 ▲25.15 | 51.67 ▲6.70 |
TempTool /wp-admin/options-general.php?page=current-template-name | 814 | 2.00 | 24.83 | 25.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/current-template-name/includes/class-ctn-suggest-plugins.php:55
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots lack descriptions #2, #3 in current-template-name/assets to your readme.txt
current-template-name/current-template-name.php 92% from 13 tests
The main PHP script in "TempTool [Show Current Template Info]" version 1.1.12 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 227 characters long)
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 plugin2,282 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 497 | 864 | 1,922 |
Markdown | 1 | 70 | 0 | 196 |
XML | 1 | 5 | 11 | 99 |
YAML | 1 | 6 | 0 | 32 |
JSON | 1 | 0 | 0 | 21 |
JavaScript | 1 | 3 | 7 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 123 | |
▷ Static methods | 8 | 6.50% |
▷ Public methods | 85 | 69.11% |
▷ Protected methods | 6 | 4.88% |
▷ Private methods | 32 | 26.02% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin