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.03MB] [CPU: ▼3.21ms] Passed 4 tests
This is a short check of server-side resources used by Popupsmart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.97 ▼6.39 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.64 ▼0.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.43 ▼1.44 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.02 ▼4.35 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.69 ▼0.64 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
popupsmart_account_id |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Popupsmart
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲112 | 13.78 ▼0.78 | 7.78 ▲5.48 | 35.65 ▼11.05 |
Dashboard /wp-admin | 2,209 ▲29 | 5.56 ▼0.04 | 84.53 ▼11.50 | 79.19 ▲39.03 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 1.94 ▼0.07 | 39.86 ▼1.04 | 35.10 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.22 ▲0.10 | 673.88 ▲41.08 | 48.83 ▼14.24 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.18 ▲0.01 | 101.31 ▼4.84 | 70.72 ▲19.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- popupsmart_account_id
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
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/popupsmart/public/partials/pop-public-display.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: pluginPath in wp-content/plugins/popupsmart/admin/partials/pop-admin-display.php on line 21
- > PHP Notice
Undefined variable: pluginPath in wp-content/plugins/popupsmart/admin/partials/pop-admin-display.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/popupsmart/admin/partials/pop-admin-field-text.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/popupsmart/admin/partials/pop-admin-display.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/popupsmart/admin/partials/pop-admin-field-dropdown.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% 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 to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== popupsmart ===
)
popupsmart/pop.php 85% from 13 tests
The main file in "Popupsmart" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("popupsmart.php" instead of "pop.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
No dangerous file extensions were detected603 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 164 | 581 | 370 |
CSS | 2 | 53 | 8 | 214 |
SVG | 4 | 0 | 0 | 13 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin