Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼8.54ms] Passed 4 tests
This is a short check of server-side resources used by Events Ads Banner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.23 ▼2.94 |
Dashboard /wp-admin | 3.49 ▲0.14 | 48.22 ▼11.09 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 49.51 ▼4.71 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 93.65 ▼15.42 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.79 ▲1.42 |
Banner Issues /wp-admin/admin.php?page=evadban-adm-problems | 3.38 | 32.29 |
Add Banner /wp-admin/admin.php?page=evadban-adm-add | 3.51 | 34.73 |
Events/ADS Banner /wp-admin/admin.php?page=evadban-adm-home | 3.46 | 33.34 |
Banner Settings /wp-admin/admin.php?page=evadban-adm-settings | 3.54 | 31.96 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fmt_evadban_plugin_attivo |
db_upgraded |
widget_recent-comments |
fmt_evadban_versione |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
fmt_evadban_data_installazione |
fmt_evadban_data_attivazione |
Browser metrics Passed 4 tests
Events Ads Banner: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 13.68 ▼1.07 | 9.39 ▲7.64 | 39.01 ▲0.63 |
Dashboard /wp-admin | 2,241 ▲56 | 4.84 ▼1.03 | 103.60 ▼2.81 | 38.82 ▼1.60 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 1.97 ▼0.04 | 40.29 ▼7.53 | 34.83 ▼8.14 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.06 ▲4.91 | 644.24 ▲15.00 | 56.16 ▲5.03 |
Media Library /wp-admin/upload.php | 1,423 ▲41 | 4.22 ▲0.03 | 112.12 ▲2.05 | 47.68 ▲5.86 |
Banner Issues /wp-admin/admin.php?page=evadban-adm-problems | 779 | 2.03 | 23.24 | 22.16 |
Add Banner /wp-admin/admin.php?page=evadban-adm-add | 1,652 | 2.20 | 43.67 | 60.99 |
Events/ADS Banner /wp-admin/admin.php?page=evadban-adm-home | 994 | 2.20 | 47.04 | 55.73 |
Banner Settings /wp-admin/admin.php?page=evadban-adm-settings | 1,527 | 1.95 | 30.18 | 44.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/eventsads-banner/eventsads-banner.php
- > /wp-content/plugins/eventsads-banner/index.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Cannot access parent:: when no class scope is active in wp-content/plugins/eventsads-banner/admin/add_view.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/eventsads-banner/view/banner.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/eventsads-banner/uninstall.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/eventsads-banner/admin/home_view.php:1
- > PHP Fatal error
Uncaught Error: Class 'EvAdBanner_Admin' not found in wp-content/plugins/eventsads-banner/admin/problems_class.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/eventsads-banner/uninstall.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'EvAdBanner_Admin' not found in wp-content/plugins/eventsads-banner/admin/settings_class.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/eventsads-banner/uninstall.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'EvAdBanner_Admin' not found in wp-content/plugins/eventsads-banner/admin/home_class.php:2
- > PHP Fatal error
Uncaught Error: Class 'EvAdBanner_Admin' not found in wp-content/plugins/eventsads-banner/admin/add_class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== eventsads-banner ===
)
eventsads-banner/eventsads-banner.php Passed 13 tests
"Events Ads Banner" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
117 characters long description:
A simple banner to show advertising, comunications, events and more. Very simple to use and to customize ! Try it !!!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,736 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 197 | 269 | 1,817 |
CSS | 5 | 142 | 301 | 382 |
JavaScript | 5 | 34 | 24 | 269 |
PO File | 1 | 292 | 594 | 268 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 15 | 25.86% |
▷ Public methods | 39 | 67.24% |
▷ Protected methods | 2 | 3.45% |
▷ Private methods | 17 | 29.31% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/freccia_sx.png | 3.06KB | 2.05KB | ▼ 33.05% |
img/up.png | 2.08KB | 0.95KB | ▼ 54.38% |
img/freccia_dx.png | 3.07KB | 2.05KB | ▼ 33.41% |