Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.98ms] Passed 4 tests
A check of server-side resources used by IT Popups
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.49 ▼0.13 |
Dashboard /wp-admin | 3.41 ▲0.10 | 53.43 ▼0.17 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.52 ▲0.19 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.11 | 100.52 ▼3.81 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.07 ▲1.04 |
IT Popups /wp-admin/options-general.php?page=it_modal_popup | 3.27 | 35.46 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for IT Popups
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲121 | 13.50 ▼0.79 | 8.69 ▲7.05 | 43.71 ▲1.72 |
Dashboard /wp-admin | 2,202 ▲25 | 5.68 ▲0.00 | 85.78 ▼7.61 | 41.64 ▼0.15 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 2.02 ▲0.03 | 34.71 ▼4.16 | 34.08 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 22.95 ▼0.10 | 703.17 ▼5.52 | 65.27 ▲10.80 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.23 ▲0.01 | 95.13 ▼12.29 | 41.17 ▼2.97 |
IT Popups /wp-admin/options-general.php?page=it_modal_popup | 1,715 | 6.80 | 140.20 | 65.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=it_modal_popup
- > Notice in wp-content/plugins/it-popups/it-popup.php+373
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=it_modal_popup
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-popups/it-popup.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
3 plugin tags: contact, popup, modal
it-popups/it-popup.php 77% from 13 tests
The principal PHP file in "IT Popups" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("it-popups.php" instead of "it-popup.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,369 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 155 | 48 | 861 |
PHP | 2 | 72 | 77 | 408 |
CSS | 2 | 13 | 7 | 100 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 24 | |
▷ Named functions | 24 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/color/hs.png | 2.62KB | 7.54KB | 0.00% |
assets/js/color/hv.png | 2.80KB | 7.32KB | 0.00% |