Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: advertSAFE site seal. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
Server metrics [RAM: ▼1.96MB] [CPU: ▼58.36ms] Passed 4 tests
This is a short check of server-side resources used by advertSAFE Site Seal
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.90 ▼38.77 |
Dashboard /wp-admin | 2.05 ▼1.26 | 10.48 ▼47.74 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.45 ▼46.77 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.52 ▼100.14 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.86 ▼32.54 |
advertSAFE site seal /wp-admin/options-general.php?page=advertsafe | 2.05 | 5.64 |
Server storage [IO: ▲1.28MB] [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: 7 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
adversafe_txt |
db_upgraded |
can_compress_scripts |
widget_advertsafewidget |
widget_advertsafewidget1 |
widget_recent-comments |
Browser metrics Passed 4 tests
advertSAFE Site Seal: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.00 | 2.29 ▲0.41 | 48.70 ▲0.98 |
Dashboard /wp-admin | 2,202 ▲22 | 5.67 ▲0.04 | 90.79 ▲3.42 | 41.36 ▼4.06 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.16 ▲0.15 | 39.72 ▼1.41 | 36.88 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.22 ▼0.06 | 659.95 ▼30.20 | 58.21 ▲5.18 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.30 ▲0.05 | 98.79 ▼14.60 | 43.49 ▼8.81 |
advertSAFE site seal /wp-admin/options-general.php?page=advertsafe | 837 | 1.98 | 22.40 | 28.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: advertSAFE site seal. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_advertsafewidget1
- widget_recent-comments
- widget_recent-posts
- widget_advertsafewidget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=advertsafe
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: advertSAFE site seal. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=advertsafe
- > Deprecated in wp-content/plugins/advertsafe/advertsafe.php+295
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=advertsafe
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: advertSAFE user ID. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
- > GET request to /wp-admin/options-general.php?page=advertsafe
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in advertsafeWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=advertsafe
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in advertsafeWidget1 is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/advertsafe/advertsafe.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Donate link: Please fix this invalid url: ""
- Screenshots: These screenshots have no corresponding images in /assets: #1 (advertSAFE site seal), #2 (Backend notes 1), #3 (Backend notes 2), #4 (Backend notes 3)
advertsafe/advertsafe.php 92% from 13 tests
The main PHP script in "advertSAFE Site Seal" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 585 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin162 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 145 | 11 | 162 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
badges/200x80_ap.png | 15.11KB | 5.19KB | ▼ 65.63% |
screenshot-1.png | 15.11KB | 5.19KB | ▼ 65.63% |