Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/pop-up-homepage/hpup.php+40
syntax error, unexpected end of file
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.46ms] Passed 4 tests
This is a short check of server-side resources used by Homepage Pop-up
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.41 ▼1.41 |
Dashboard /wp-admin | 3.31 ▼0.04 | 56.79 ▼3.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.56 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.68 ▼15.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.18 ▼1.01 |
Server storage [IO: ▲1.35MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Homepage Pop-up
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.12 | 1.68 ▲0.02 | 41.14 ▼1.32 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▲0.03 | 85.55 ▼4.07 | 35.25 ▼1.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.06 | 36.55 ▼3.54 | 31.35 ▼5.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.65 ▲0.62 | 624.47 ▲12.48 | 68.15 ▼7.35 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.23 ▲0.02 | 95.61 ▼6.03 | 40.45 ▼3.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: updateData in wp-content/plugins/pop-up-homepage/includes/functions.php on line 92
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/pop-up-homepage/views/popup.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pop-up-homepage/includes/functions.php on line 1
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pop-up-homepage/includes/functions.php on line 1
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/pop-up-homepage/views/popup.php on line 6
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/pop-up-homepage/hpup.php on line 40
- > PHP Warning
include_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/pop-up-homepage/includes/functions.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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 your attention:
- Screenshots: These screenshots do not have images: #1 (Creating simple pop-up in the admin interface), #2 (Preview on Admin page), #3 (Result on the homepage)
pop-up-homepage/hpup.php 92% from 13 tests
This is the main PHP file of "Homepage Pop-up" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("pop-up-homepage.php" instead of "hpup.php")
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
Good job! No executable or dangerous file extensions detected682 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 94 | 32 | 324 |
PO File | 2 | 40 | 82 | 128 |
CSS | 1 | 2 | 1 | 121 |
JavaScript | 2 | 19 | 72 | 109 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 5.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 1.31MB with 0.59MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 636.47KB | 189.71KB | ▼ 70.19% |
screenshot-3.png | 636.47KB | 189.71KB | ▼ 70.19% |
images/close_pop.png | 2.65KB | 1.87KB | ▼ 29.73% |
screenshot-2.png | 67.88KB | 61.25KB | ▼ 9.76% |