Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.87ms] Passed 4 tests
This is a short check of server-side resources used by show template name
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.02 | 39.68 ▲2.13 |
Dashboard /wp-admin | 3.38 ▼0.00 | 47.06 ▼19.15 |
Posts /wp-admin/edit.php | 3.43 ▲0.04 | 50.52 ▲1.25 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.04 | 93.25 ▲0.62 |
Media Library /wp-admin/upload.php | 3.30 ▲0.04 | 35.74 ▲1.79 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for show template name
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.30 ▼1.13 | 1.68 ▲0.03 | 43.18 ▲2.61 |
Dashboard /wp-admin | 2,206 ▲21 | 4.84 ▼0.03 | 105.23 ▲4.34 | 38.64 ▼5.54 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.04 ▲0.04 | 39.62 ▲0.12 | 35.33 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.10 ▼0.05 | 617.84 ▼22.95 | 55.24 ▲0.58 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.05 | 97.85 ▲0.76 | 41.80 ▼1.74 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Compile error in wp-content/plugins/show-template-name/src/class-plugin.php+7
Cannot declare class Bubuku\Plugins\ShowTemplateName\Plugin, because the name is already in use
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
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
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/show-template-name/src/index.php
- > /wp-content/plugins/show-template-name/view/index.php
- > /wp-content/plugins/show-template-name/show-template-name.php
- > /wp-content/plugins/show-template-name/index.php
- > /wp-content/plugins/show-template-name/uninstall.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: template, theme template
show-template-name/show-template-name.php 92% from 13 tests
The main PHP file in "show template name" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected188 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 58 | 107 | 188 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 26.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 2 | 22.22% |
▷ Class constants | 7 | 77.78% |
▷ Public constants | 5 | 71.43% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected