Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/offers-popup/offers.php+87
Undefined index: action
Server metrics [RAM: ▼1.92MB] [CPU: ▼50.75ms] Passed 4 tests
A check of server-side resources used by Offer Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 8.66 ▼38.12 |
Dashboard /wp-admin | 2.09 ▼1.22 | 7.18 ▼41.43 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.81 ▼41.22 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.80 ▼82.21 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.62 ▼26.19 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_offers |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Offer Popup: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 13.61 ▼0.97 | 4.67 ▲2.62 | 38.82 ▼8.88 |
Dashboard /wp-admin | 2,245 ▲57 | 5.92 ▲1.04 | 96.00 ▼21.56 | 40.55 ▼3.80 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.08 ▲0.07 | 37.11 ▲2.40 | 33.46 ▼4.16 |
Add New Post /wp-admin/post-new.php | 1,549 ▲30 | 23.17 ▼0.32 | 597.80 ▼91.13 | 51.18 ▼2.81 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.26 ▲0.05 | 95.20 ▼17.54 | 42.50 ▼5.38 |
Add New Offer /wp-admin/offers_admin.php?page=offers_add_offer | 26 | 0.44 | 0.12 | 12.14 |
Offers Widget /wp-admin/offers_admin.php | 26 | 0.44 | 0.11 | 6.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/offers-popup/offers.php+87
Undefined index: action
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
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 items
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/offers-popup/offers.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/offers-popup/new_offers.php:7
- > PHP Notice
Undefined variable: offer_detail in wp-content/plugins/offers-popup/manage_offer.php on line 4
- > PHP Notice
Undefined index: info in wp-content/plugins/offers-popup/offers_admin.php on line 3
- > PHP Notice
Undefined index: orderby in wp-content/plugins/offers-popup/offers_admin.php on line 14
- > PHP Notice
Undefined index: order in wp-content/plugins/offers-popup/offers_admin.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/offers-popup/offers_admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function the_editor() in wp-content/plugins/offers-popup/manage_offer.php:74
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/offers-popup/manage_offer.php on line 4
- > PHP Notice
Undefined variable: offer_detail in wp-content/plugins/offers-popup/manage_offer.php on line 46
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/offers_admin.php?page=offers_add_offer
- > Network (severe)
wp-admin/offers_admin.php?page=offers_add_offer - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/offers_admin.php
- > Network (severe)
wp-admin/offers_admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
offers-popup/offers.php 92% from 13 tests
This is the main PHP file of "Offer Popup" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("offers-popup.php" instead of "offers.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected798 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 28 | 54 | 393 |
PHP | 4 | 30 | 9 | 348 |
JavaScript | 1 | 6 | 0 | 57 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |