Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/advertikon-freeshipping-teaser/notification.php+21
require_once(wp-content/plugins/advertikon-freeshipping-teaser/../library/advertikon.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.92ms] Passed 4 tests
Server-side resources used by Smart Notifications
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.89 ▲0.73 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.27 ▲0.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.46 ▲1.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.61 ▼6.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.94 ▲1.32 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Notifications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.22 | 1.91 ▲0.10 | 43.54 ▼3.25 |
Dashboard /wp-admin | 2,206 ▲14 | 5.86 ▲0.90 | 97.84 ▼14.87 | 37.85 ▼6.36 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▲0.01 | 36.05 ▲3.48 | 38.39 ▲5.61 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.40 ▼5.96 | 706.62 ▲42.96 | 54.14 ▼0.15 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.03 | 99.04 ▲4.21 | 45.13 ▲1.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/advertikon-freeshipping-teaser/storage/templates/simple.php
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: shadow_color in wp-content/plugins/advertikon-freeshipping-teaser/storage/templates/simple.php on line 7
- > PHP Notice
Undefined variable: name in wp-content/plugins/advertikon-freeshipping-teaser/storage/templates/simple.php on line 23
- > PHP Notice
Undefined variable: border_width in wp-content/plugins/advertikon-freeshipping-teaser/storage/templates/simple.php on line 6
- > PHP Notice
Undefined variable: shadow_dispersion in wp-content/plugins/advertikon-freeshipping-teaser/storage/templates/simple.php on line 7
- > PHP Notice
Undefined variable: border_color in wp-content/plugins/advertikon-freeshipping-teaser/storage/templates/simple.php on line 6
- > PHP Notice
Undefined variable: width in wp-content/plugins/advertikon-freeshipping-teaser/storage/templates/simple.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/advertikon-freeshipping-teaser/includes/setting.php:7
- > PHP Notice
Undefined variable: shadow_horizontal in wp-content/plugins/advertikon-freeshipping-teaser/storage/templates/simple.php on line 7
- > PHP Notice
Undefined variable: name in wp-content/plugins/advertikon-freeshipping-teaser/storage/templates/simple.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/advertikon-freeshipping-teaser/notification.php:21
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== advertikon-freeshipping-teaser ===
) - Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in advertikon-freeshipping-teaser/assets to your readme.txt
advertikon-freeshipping-teaser/notification.php 85% from 13 tests
"Smart Notifications" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advertikon-freeshipping-teaser.php" instead of "notification.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin5,240 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 536 | 264 | 3,052 |
JavaScript | 5 | 444 | 1,084 | 1,344 |
CSS | 2 | 95 | 28 | 614 |
HTML | 1 | 23 | 0 | 142 |
PO File | 1 | 29 | 29 | 88 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 34.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 20 | 18.18% |
▷ Public methods | 69 | 62.73% |
▷ Protected methods | 41 | 37.27% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 16 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 16 | 100.00% |
▷ Public constants | 16 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.52MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/smart_notifications_settings.png | 112.48KB | 37.26KB | ▼ 66.87% |
assets/img/smart_notifications_events.png | 84.47KB | 33.58KB | ▼ 60.24% |
assets/img/smart_notifications_appearance_setting.png | 62.02KB | 24.37KB | ▼ 60.71% |
assets/img/smart_notifications_activate.png | 93.56KB | 33.10KB | ▼ 64.63% |
assets/img/admin_blocks.png | 35.46KB | 14.31KB | ▼ 59.65% |