Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.36ms] Passed 4 tests
This is a short check of server-side resources used by MK Adblock
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.01 ▼3.09 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.05 ▼2.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.82 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.66 ▼7.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.75 ▼0.33 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
mk_adblock_description |
mk_adblock_title |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by MK Adblock
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲170 | 13.74 ▼0.46 | 10.66 ▲8.98 | 48.50 ▲1.20 |
Dashboard /wp-admin | 2,224 ▲36 | 4.87 ▼1.03 | 109.32 ▲5.98 | 40.35 ▼0.41 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.99 ▼0.02 | 40.79 ▼0.83 | 34.29 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,543 ▲14 | 23.23 ▲4.79 | 590.50 ▼51.62 | 53.50 ▲4.63 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.23 ▲0.05 | 97.71 ▼3.10 | 40.55 ▼6.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- mk_adblock_title
- widget_theysaidso_widget
- theysaidso_admin_options
- mk_adblock_description
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mk-adblock/mk-adblock.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
mk-adblock/mk-adblock.php Passed 13 tests
The main PHP file in "MK Adblock" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
If your visitors uses Adblock, hide your elements, videos and show alert block!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected369 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 26 | 6 | 219 |
PHP | 1 | 10 | 9 | 125 |
CSS | 2 | 0 | 1 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.14 |
▷ 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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin