Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.19ms] Passed 4 tests
An overview of server-side resources used by Detect Missing Adblocker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.52 ▼0.61 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.63 ▼18.37 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.07 ▲1.06 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 104.90 ▲4.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.31 ▼2.82 |
Missing Ad-blocker /wp-admin/options-general.php?page=ftf-detect-missing-adblocker | 3.26 | 36.48 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Detect Missing Adblocker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 14.71 ▲0.36 | 2.72 ▲1.04 | 41.39 ▼1.63 |
Dashboard /wp-admin | 2,199 ▲25 | 5.60 ▼0.00 | 86.98 ▼7.54 | 41.71 ▲0.76 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.99 ▼0.01 | 39.21 ▲0.69 | 35.57 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.80 ▲0.59 | 742.49 ▲86.84 | 68.21 ▲12.79 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.24 ▲0.01 | 100.36 ▼8.94 | 44.16 ▼4.83 |
Missing Ad-blocker /wp-admin/options-general.php?page=ftf-detect-missing-adblocker | 1,335 | 5.39 | 102.36 | 52.51 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 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/detect-missing-adblocker/ftf-detect-missing-adblocker.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: ads, adblock
detect-missing-adblocker/ftf-detect-missing-adblocker.php 92% from 13 tests
"Detect Missing Adblocker" version 1.1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("detect-missing-adblocker.php" instead of "ftf-detect-missing-adblocker.php")
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
There were no executable files found in this plugin7,640 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 6,759 |
Markdown | 2 | 126 | 0 | 560 |
PHP | 1 | 23 | 6 | 187 |
JavaScript | 7 | 5 | 1 | 92 |
Sass | 2 | 7 | 3 | 40 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 5.95KB | 2.77KB | ▼ 53.42% |
assets/screenshot-1.png | 27.77KB | 15.77KB | ▼ 43.21% |
assets/icon-256x256.png | 12.08KB | 4.85KB | ▼ 59.88% |
assets/icon-400x400.png | 11.66KB | 7.72KB | ▼ 33.82% |
assets/screenshot-2.png | 11.04KB | 6.73KB | ▼ 39.10% |