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.16MB] [CPU: ▼7.98ms] Passed 4 tests
Analyzing server-side resources used by Simple Popup Block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 38.33 ▼6.08 |
Dashboard /wp-admin | 3.47 ▲0.12 | 46.44 ▼16.00 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 46.41 ▼0.88 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 81.38 ▼8.94 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.11 ▲1.16 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Popup Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲57 | 14.34 ▼0.06 | 1.87 ▲0.12 | 47.37 ▲1.32 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.09 | 93.68 ▼9.11 | 40.19 ▼3.05 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.01 | 39.66 ▲2.72 | 34.19 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,697 ▲162 | 22.29 ▼2.77 | 623.39 ▼31.61 | 30.32 ▼39.60 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.17 ▲0.01 | 99.74 ▼1.76 | 40.71 ▲0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- 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 | 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-popup-block/patterns/blank.php
- > /wp-content/plugins/simple-popup-block/patterns/cyber-monday.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-popup-block/patterns/cookie.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-popup-block/patterns/newsletter.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-popup-block/patterns/notice.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-popup-block/patterns/christmas.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-popup-block/patterns/illustration.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-popup-block/patterns/vacation.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Codemanas\\SimplePopupBlock\\get_bloginfo() in wp-content/plugins/simple-popup-block/includes/Bootstrap.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-popup-block/patterns/new-year.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: simple-popup, block, modal, popup
simple-popup-block/simple-popup-block.php Passed 13 tests
This is the main PHP file of "Simple Popup Block" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
A simple and easy to use popup block plugin for block editor
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
No dangerous file extensions were detected1,041 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 232 | 472 | 927 |
JSON | 2 | 0 | 0 | 111 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 1 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 57 | |
▷ Static methods | 22 | 38.60% |
▷ Public methods | 51 | 89.47% |
▷ Protected methods | 3 | 5.26% |
▷ Private methods | 3 | 5.26% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.43MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
patterns/assets/warning.png | 5.31KB | 3.15KB | ▼ 40.78% |
build/images/blank.839b3799.png | 4.13KB | 2.03KB | ▼ 50.70% |
patterns/assets/cookies.png | 17.79KB | 8.00KB | ▼ 55.01% |
patterns/assets/emailLogo.png | 4.37KB | 1.93KB | ▼ 55.73% |
patterns/assets/boyBusiness.png | 408.88KB | 141.36KB | ▼ 65.43% |