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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.60ms] Passed 4 tests
An overview of server-side resources used by JetBlocker Anit AdBlocker Detector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.59 ▼5.05 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.90 ▼1.51 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.26 ▼0.18 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.74 ▼3.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.49 ▲1.91 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-comments |
jetblocker_donate_link |
jetblocker_heading |
jetblocker_subheading |
jetblocker_fullscreen |
whitelist_btn_text |
db_upgraded |
jetblocker_text |
theysaidso_admin_options |
jetblocker_donate_btn_text |
... |
Browser metrics Passed 4 tests
A check of browser resources used by JetBlocker Anit AdBlocker Detector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲218 | 13.81 ▼0.46 | 9.38 ▲7.23 | 27.81 ▼20.52 |
Dashboard /wp-admin | 2,218 ▲51 | 5.61 ▼0.01 | 92.92 ▼16.69 | 44.07 ▲0.59 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.03 ▲0.02 | 39.03 ▼2.69 | 38.49 ▲1.62 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 22.95 ▼0.18 | 668.41 ▼17.11 | 54.48 ▲0.08 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.16 ▼0.04 | 98.17 ▼5.12 | 42.10 ▼3.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 14 options in the database
- whitelist_btn_text
- widget_recent-comments
- jetblocker_text
- jetblocker_fullscreen
- jetblocker_heading
- jetblocker_subheading
- jetblocker_switch
- db_upgraded
- jetblocker_donate_link
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jet-blocker-anti-ad-blocker-detector/public/partials/jetblocker-anti-ad-blocker-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/jet-blocker-anti-ad-blocker-detector/admin/partials/jetblocker-anti-ad-blocker-admin-display.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Contributors: The plugin contributors field is not present
jet-blocker-anti-ad-blocker-detector/jetblocker-anti-ad-blocker.php 69% from 13 tests
This is the main PHP file of "JetBlocker Anit AdBlocker Detector" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.2.4")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jet-blocker-anti-ad-blocker-detector.php" instead of "jetblocker-anti-ad-blocker.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
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "4.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin797 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 159 | 638 | 480 |
CSS | 3 | 50 | 24 | 267 |
JavaScript | 3 | 15 | 84 | 50 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 7 | |
▷ Named functions | 7 | 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.05MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 54.21KB | 29.20KB | ▼ 46.13% |