Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.20ms] Passed 4 tests
Server-side resources used by Magic Template Holder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.85 ▼5.05 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.78 ▼5.96 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.63 ▲0.30 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 93.61 ▲1.92 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.65 ▲2.47 |
All MTH Templates /wp-admin/edit.php?post_type=mth-template | 3.36 | 38.90 |
Group /wp-admin/edit-tags.php?taxonomy=mth-template-group&post_type=mth-template | 3.31 | 30.62 |
Add new /wp-admin/post-new.php?post_type=mth-template | 3.49 | 53.67 |
Settings /wp-admin/edit.php?post_type=mth-template&page=mth_template_options | 3.29 | 29.38 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Magic Template Holder: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲130 | 13.29 ▼1.37 | 4.12 ▲2.27 | 39.75 ▼1.35 |
Dashboard /wp-admin | 2,246 ▲58 | 5.86 ▲0.98 | 107.95 ▼9.79 | 36.26 ▼12.87 |
Posts /wp-admin/edit.php | 2,129 ▲43 | 2.06 ▲0.06 | 39.88 ▲5.90 | 34.74 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,570 ▲36 | 23.65 ▲0.58 | 641.73 ▼10.12 | 51.97 ▼9.28 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.30 ▲0.02 | 97.86 ▼9.23 | 44.77 ▲0.48 |
All MTH Templates /wp-admin/edit.php?post_type=mth-template | 1,112 | 2.00 | 34.84 | 30.66 |
Group /wp-admin/edit-tags.php?taxonomy=mth-template-group&post_type=mth-template | 1,302 | 2.14 | 25.47 | 26.12 |
Add new /wp-admin/post-new.php?post_type=mth-template | 2,363 | 7.70 | 174.40 | 78.62 |
Settings /wp-admin/edit.php?post_type=mth-template&page=mth_template_options | 801 | 2.03 | 22.75 | 20.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/magic-template-holder/templates/option-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/magic-template-holder/templates/popup-forms.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== magic-template-holder ===
)
magic-template-holder/magic-template-holder.php Passed 13 tests
"Magic Template Holder" version 1.0.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Enable to handle templates easily on editor page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,060 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 162 | 124 | 473 |
JavaScript | 3 | 221 | 290 | 426 |
PO File | 1 | 47 | 60 | 108 |
CSS | 1 | 16 | 14 | 53 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
No PNG files were detected