Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.95MB] [CPU: ▼31.93ms] Passed 4 tests
A check of server-side resources used by offadblock-wp
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.80 ▼11.32 |
Dashboard /wp-admin | 3.00 ▼0.31 | 21.36 ▼22.90 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 24.72 ▼24.60 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 24.30 ▼65.87 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 20.55 ▼14.34 |
Server storage [IO: ▲0.04MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for offadblock-wp
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.81 ▼0.69 | 1.64 ▼0.28 | 39.46 ▼5.11 |
Dashboard /wp-admin | 2,246 ▲55 | 5.03 ▼0.87 | 107.37 ▲4.86 | 72.08 ▲28.52 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.30 ▲0.27 | 38.26 ▼1.27 | 34.46 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,544 ▲6 | 23.19 ▲0.15 | 692.11 ▲28.16 | 40.29 ▼16.80 |
Media Library /wp-admin/upload.php | 1,416 ▲34 | 4.31 ▲0.09 | 100.68 ▲2.72 | 91.73 ▲46.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
2 plugin tags: adblock, offadblock
offadblock-wp/offadblock-wp.php Passed 13 tests
The principal PHP file in "offadblock-wp" v. 1.0 is loaded by WordPress automatically on each request
96 characters long description:
The plugin reacts to the active adblock plugin, prohibiting or limiting the user's capabilities.
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
Everything looks great! No dangerous files found in this plugin690 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 42 | 332 |
CSS | 3 | 45 | 14 | 188 |
JavaScript | 4 | 29 | 0 | 94 |
PO File | 1 | 29 | 29 | 76 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 9 | |
▷ Named functions | 9 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/img/dab-oab-icon.png | 1.83KB | 1.01KB | ▼ 44.56% |
dab-oab-icon.png | 1.83KB | 1.01KB | ▼ 44.56% |