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.12MB] [CPU: ▲0.14ms] Passed 4 tests
This is a short check of server-side resources used by Popup Ads Management
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.03 ▲1.84 |
Dashboard /wp-admin | 3.42 ▲0.12 | 49.06 ▼1.44 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.13 ▼3.36 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 100.04 ▲3.50 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.74 ▲6.29 |
Add New /wp-admin/post-new.php?post_type=popup-ads | 3.47 | 54.86 |
Popup Ads /wp-admin/edit.php?post_type=popup-ads | 3.40 | 39.35 |
Read Me /wp-admin/edit.php?post_type=popup-ads&page=msbd-popadsm-readme | 3.29 | 31.12 |
Settings /wp-admin/edit.php?post_type=popup-ads&page=msbd-popadsm-settings | 3.29 | 29.73 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=popup-ads | 3.34 | 39.36 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
category_children |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
_msbd_popadsm_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Popup Ads Management: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲107 | 13.34 ▼1.01 | 2.63 ▲0.22 | 43.06 ▼5.63 |
Dashboard /wp-admin | 2,264 ▲67 | 4.88 ▼0.97 | 105.10 ▼2.99 | 38.08 ▼4.66 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.02 ▲0.01 | 35.43 ▼3.61 | 32.52 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,562 ▲17 | 23.12 ▼0.06 | 636.25 ▼25.65 | 54.47 ▲1.61 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.17 ▼0.01 | 98.01 ▼5.71 | 44.04 ▼1.15 |
Add New /wp-admin/post-new.php?post_type=popup-ads | 2,388 | 7.61 | 174.22 | 65.32 |
Popup Ads /wp-admin/edit.php?post_type=popup-ads | 1,142 | 1.95 | 30.00 | 29.43 |
Read Me /wp-admin/edit.php?post_type=popup-ads&page=msbd-popadsm-readme | 1,013 | 5.21 | 149.24 | 32.79 |
Settings /wp-admin/edit.php?post_type=popup-ads&page=msbd-popadsm-settings | 1,042 | 4.80 | 143.72 | 28.89 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=popup-ads | 1,498 | 2.27 | 28.52 | 33.39 |
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
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- category_children
- theysaidso_admin_options
- _msbd_popadsm_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% 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=popup-ads&page=msbd-popadsm-settings
- > Warning in wp-content/plugins/popup-ads-management/libs/views/admin-view-helper-functions.php+34
Use of undefined constant MSBD_ADSMP_URL - assumed 'MSBD_ADSMP_URL' (this will throw an Error in a future version of PHP)
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/popup-ads-management/main.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=popup-ads&page=msbd-popadsm-settings
- > Network (severe)
wp-admin/MSBD_ADSMP_URLimages/msbd_logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=popup-ads&page=msbd-popadsm-settings
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: display popup by categories, manage ads, publish popup advertisement, affiliate advertising, display popup by category...
popup-ads-management/main.php 85% from 13 tests
Analyzing the main PHP file in "Popup Ads Management" version 0.0.4
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("popup-ads-management.php" instead of "main.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin757 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 312 | 145 | 600 |
CSS | 2 | 14 | 0 | 115 |
JavaScript | 2 | 25 | 4 | 42 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 7 | 22.58% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/msbd_favicon_16.png | 0.61KB | 0.63KB | 0.00% |
images/msbd_logo.png | 28.81KB | 9.10KB | ▼ 68.41% |
images/msbd_favicon_32.png | 1.12KB | 1.20KB | 0.00% |