Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼7.19ms] Passed 4 tests
Server-side resources used by Metronet Tag Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.10 ▼1.99 |
Dashboard /wp-admin | 3.47 ▲0.17 | 48.75 ▼0.36 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 44.67 ▼7.44 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 81.78 ▼18.95 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.94 ▲3.19 |
Metronet Tag Manager /wp-admin/options-general.php?page=metronet-tag-manager | 3.37 | 468.71 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
metronet_tag_manager |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Metronet Tag Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.35 ▼0.36 | 1.68 ▲0.17 | 42.98 ▲2.05 |
Dashboard /wp-admin | 2,199 ▲22 | 5.54 ▼0.02 | 85.77 ▼0.38 | 38.52 ▲0.82 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.05 | 34.76 ▼2.92 | 38.02 ▲4.04 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,724 | 24.67 ▲1.51 | 963.34 ▲292.82 | 58.69 ▲7.07 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.24 ▲0.03 | 94.45 ▼0.17 | 38.98 ▼3.34 |
Metronet Tag Manager /wp-admin/options-general.php?page=metronet-tag-manager | 1,081 | 2.20 | 23.27 | 33.12 |
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 detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 0% 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 fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/metronet-tag-manager/gutenberg/class-gutenberg.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_script() in wp-content/plugins/metronet-tag-manager/tinyMCE/addparams.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metronet-tag-manager/metronet-tag-manager.php:815
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #4 is required in metronet-tag-manager/assets to your readme.txt
metronet-tag-manager/metronet-tag-manager.php 92% from 13 tests
The principal PHP file in "Metronet Tag Manager" v. 1.5.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.9" instead of "4.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,074 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 52 | 48 | 1,171 |
PHP | 4 | 130 | 184 | 685 |
JavaScript | 6 | 49 | 14 | 178 |
Markdown | 1 | 15 | 0 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 41 | |
▷ Static methods | 3 | 7.32% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.51% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add-green.png | 0.93KB | 0.57KB | ▼ 38.29% |
tinyMCE/img/metro_gtm.png | 1.79KB | 0.93KB | ▼ 48.12% |
images/delete.png | 2.00KB | 1.41KB | ▼ 29.35% |