Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.15MB] [CPU: ▼19.20ms] Passed 4 tests
Analyzing server-side resources used by I Agree! Popups
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 40.46 ▼2.45 |
Dashboard /wp-admin | 3.23 ▼0.11 | 34.80 ▼29.95 |
Posts /wp-admin/edit.php | 3.29 ▼0.06 | 39.17 ▼12.98 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.41 | 75.26 ▼28.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.48 ▼5.30 |
Create Popup /wp-admin/post-new.php?post_type=i-agree-popup | 3.27 | 40.85 |
All Popups /wp-admin/edit.php?post_type=i-agree-popup | 3.27 | 39.63 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for I Agree! Popups
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.14 ▼1.03 | 1.81 ▼0.26 | 43.78 ▲0.25 |
Dashboard /wp-admin | 2,235 ▲47 | 4.90 ▼0.98 | 110.74 ▲4.11 | 39.93 ▼2.02 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.06 ▲0.04 | 40.11 ▼2.14 | 35.62 ▼1.43 |
Add New Post /wp-admin/post-new.php | 6,279 ▲4,759 | 26.17 ▲3.03 | 855.83 ▲174.57 | 58.97 ▲4.65 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.22 ▼0.07 | 96.91 ▼19.03 | 43.65 ▼4.26 |
Create Popup /wp-admin/post-new.php?post_type=i-agree-popup | 2,742 | 7.87 | 186.33 | 78.01 |
All Popups /wp-admin/edit.php?post_type=i-agree-popup | 1,079 | 2.00 | 29.92 | 31.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=i-agree-popup
- > Notice in wp-content/plugins/i-agree-popups/includes/i-agree-wp-footer.php+201
Undefined variable: swOrsp
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/i-agree-popups/includes/i-agree-post-metaboxes.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (I Agree! Popups), #2 (A popup set to appear 'Sitewide'), #3 (Sitewide popup in action), #4 (Creating a popup for use on a single page), #5 (Assigning the popup to the stock WordPress Sample Page), #6 (Sample Page popup in action)
i-agree-popups/i-agree-popups.php Passed 13 tests
The primary PHP file in "I Agree! Popups" version 1.0 is used by WordPress to initiate all plugin functionality
105 characters long description:
Creates T&C and disclaimer popups for use across your whole WordPress site or individual posts and pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,975 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 322 | 194 | 1,807 |
PHP | 9 | 230 | 326 | 712 |
CSS | 2 | 44 | 36 | 456 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 5 | 13.16% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
6 PNG files occupy 1.21MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 286.62KB | 92.63KB | ▼ 67.68% |
screenshot-4.png | 284.94KB | 92.52KB | ▼ 67.53% |
screenshot-5.png | 240.30KB | 80.90KB | ▼ 66.33% |
screenshot-3.png | 160.87KB | 59.16KB | ▼ 63.22% |
screenshot-1.png | 83.89KB | 24.41KB | ▼ 70.91% |