Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.92MB] [CPU: ▲4.30ms] Passed 4 tests
An overview of server-side resources used by WebberZone Snippetz - Header, Body and Footer manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 46.57 ▲6.32 |
Dashboard /wp-admin | 4.30 ▲1.00 | 52.86 ▲5.28 |
Posts /wp-admin/edit.php | 4.35 ▲0.99 | 50.73 ▲0.35 |
Add New Post /wp-admin/post-new.php | 6.89 ▲1.00 | 98.03 ▲5.26 |
Media Library /wp-admin/upload.php | 4.22 ▲0.99 | 45.40 ▲12.54 |
All Snippetz /wp-admin/edit.php?post_type=ata_snippets | 4.27 | 41.25 |
Settings /wp-admin/edit.php?post_type=ata_snippets&page=ata_options_page | 4.26 | 45.33 |
Snippet Category /wp-admin/edit-tags.php?taxonomy=ata_snippets_category&post_type=ata_snippets | 4.22 | 40.18 |
Add New Snippet /wp-admin/post-new.php?post_type=ata_snippets | 4.33 | 58.01 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
ata_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WebberZone Snippetz - Header, Body and Footer manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.61 ▼1.04 | 1.57 ▼0.13 | 39.57 ▼7.24 |
Dashboard /wp-admin | 2,241 ▲56 | 4.87 ▼1.00 | 99.63 ▼3.19 | 36.32 ▼5.18 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.05 ▲0.02 | 36.99 ▼1.06 | 32.87 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,571 ▲57 | 23.31 ▲5.62 | 607.71 ▼9.12 | 69.10 ▲14.07 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.19 ▼0.07 | 97.83 ▼3.00 | 41.23 ▼1.29 |
All Snippetz /wp-admin/edit.php?post_type=ata_snippets | 1,140 | 1.93 | 30.95 | 28.78 |
Settings /wp-admin/edit.php?post_type=ata_snippets&page=ata_options_page | 2,667 | 6.87 | 161.65 | 132.91 |
Snippet Category /wp-admin/edit-tags.php?taxonomy=ata_snippets_category&post_type=ata_snippets | 1,294 | 2.13 | 26.30 | 26.72 |
Add New Snippet /wp-admin/post-new.php?post_type=ata_snippets | 2,270 | 6.87 | 147.98 | 46.25 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/add-to-all/includes/admin/settings/sidebar.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #8 (The display options meta box where you can choose where and when to display your snippets)
add-to-all/add-to-all.php Passed 13 tests
The entry point to "WebberZone Snippetz - Header, Body and Footer manager" version 2.0.1 is a PHP file that has certain tags in its header comment area
97 characters long description:
A simple yet powerful plugin that allows you to insert any code snippet or script into WordPress.
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
There were no executable files found in this plugin4,008 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 783 | 2,031 | 3,154 |
PO File | 1 | 205 | 267 | 543 |
JavaScript | 8 | 60 | 18 | 273 |
Markdown | 1 | 22 | 0 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 21.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 156 | |
▷ Static methods | 33 | 21.15% |
▷ Public methods | 154 | 98.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.28% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/images/fb.png | 1.51KB | 1.59KB | 0.00% |