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.05MB] [CPU: ▼10.92ms] Passed 4 tests
A check of server-side resources used by Simple Adblock Notice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.39 ▼1.85 |
Dashboard /wp-admin | 3.37 ▲0.02 | 44.58 ▼15.07 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.19 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.81 ▼28.06 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.06 ▲6.00 |
Simple Adblock Notice /wp-admin/options-general.php?page=simple-adblock-notice-settings | 3.25 | 29.82 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
simple_adblock_notice_settings |
Browser metrics Passed 4 tests
Simple Adblock Notice: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.67 ▼0.61 | 6.88 ▲4.89 | 45.49 ▼5.00 |
Dashboard /wp-admin | 2,212 ▲24 | 5.87 ▲0.99 | 111.02 ▲4.08 | 39.79 ▲3.32 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.06 ▲0.03 | 38.76 ▼5.16 | 37.10 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 21.15 ▲2.71 | 731.40 ▲118.32 | 63.74 ▲0.04 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.18 ▼0.03 | 106.73 ▲4.89 | 47.46 ▲2.95 |
Simple Adblock Notice /wp-admin/options-general.php?page=simple-adblock-notice-settings | 1,073 | 2.06 | 27.01 | 33.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 Passed 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
8 plugin tags: anti adblock, adblock plus notice, adblock plus detect, anti adblock plus, advertisement...
simple-adblock-notice/simple-adblock-notice.php Passed 13 tests
The main PHP script in "Simple Adblock Notice" version 2.4.0 is automatically included on every request by WordPress
116 characters long description:
Simple Adblock Notice plugin shows a popup to whitelist your website if Adblock plus browser extension is installed.
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
Good job! No executable or dangerous file extensions detected784 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 114 | 40 | 344 |
CSS | 3 | 28 | 18 | 339 |
SVG | 1 | 0 | 0 | 97 |
JavaScript | 2 | 0 | 0 | 4 |
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.28 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/close.png | 1.18KB | 0.27KB | ▼ 76.83% |