Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.83ms] Passed 4 tests
This is a short check of server-side resources used by Surbma | OptiMonk
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.00 | 40.94 ▼0.50 |
Dashboard /wp-admin | 3.59 ▲0.03 | 47.71 ▼4.43 |
Posts /wp-admin/edit.php | 3.70 ▲0.02 | 52.01 ▲0.65 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.02 | 97.90 ▼3.02 |
Media Library /wp-admin/upload.php | 3.51 ▲0.02 | 40.83 ▲2.14 |
OptiMonk Settings /wp-admin/options-general.php?page=surbma-optimonk-settings | 3.46 | 32.35 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Surbma | OptiMonk
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.75 ▲0.13 | 1.79 ▼0.39 | 41.31 ▼5.10 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▲0.05 | 98.98 ▲11.00 | 42.35 ▼0.70 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.99 ▼0.10 | 39.96 ▼1.09 | 35.30 ▼5.08 |
Add New Post /wp-admin/post-new.php | 1,557 ▲17 | 18.67 ▲0.02 | 631.60 ▼18.23 | 53.33 ▼3.49 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.24 ▲0.02 | 103.44 ▼2.39 | 45.60 ▲2.30 |
OptiMonk Settings /wp-admin/options-general.php?page=surbma-optimonk-settings | 842 | 2.13 | 27.25 | 31.06 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% 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 errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=surbma-optimonk-settings
- > Notice in wp-content/plugins/surbma-optimonk/pages/settings-page.php+48
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/surbma-optimonk/surbma-optimonk.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant SURBMA_OPTIMONK_PLUGIN_DIR - assumed 'SURBMA_OPTIMONK_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/surbma-optimonk/lib/admin.php on line 3
- > PHP Warning
include_once(): Failed opening 'SURBMA_OPTIMONK_PLUGIN_DIR/pages/settings-page.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/surbma-optimonk/lib/admin.php on line 3
- > PHP Warning
include_once(SURBMA_OPTIMONK_PLUGIN_DIR/pages/settings-page.php): failed to open stream: No such file or directory in wp-content/plugins/surbma-optimonk/lib/admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-optimonk/lib/admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-optimonk/pages/settings-page.php:40
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: popup, pop up, exit intent, newsletter, optimonk
surbma-optimonk/surbma-optimonk.php Passed 13 tests
The primary PHP file in "Surbma | OptiMonk" version 2.1 is used by WordPress to initiate all plugin functionality
22 characters long description:
OptiMonk for WordPress
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
Everything looks great! No dangerous files found in this plugin141 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 24 | 17 | 83 |
PO File | 1 | 18 | 41 | 55 |
Markdown | 1 | 1 | 0 | 3 |
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.17 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 5.98KB | 3.45KB | ▼ 42.42% |