Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Parse error in wp-content/plugins/blocked-banners-stats/blbnstats.php+87
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.97ms] Passed 4 tests
Server-side resources used by Blocked Banners Stats
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.70 ▼3.41 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.65 ▼3.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.43 ▲1.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.79 ▼14.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 43.56 ▲5.58 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Blocked Banners Stats: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.11 | 2.10 ▲0.30 | 47.22 ▲1.62 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.04 | 91.36 ▼6.19 | 42.20 ▼1.40 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.07 | 41.00 ▲2.87 | 36.65 ▲4.89 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.00 ▼0.21 | 694.82 ▲52.92 | 62.18 ▲9.86 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.19 ▼0.00 | 102.06 ▼1.07 | 45.36 ▲0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/blocked-banners-stats/blbnstats.class.php on line 316
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/blocked-banners-stats/blbnstats.php on line 87
- > PHP Parse 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
5 plugin tags: ads, stats, ad-block, statistics, advertising
blocked-banners-stats/blbnstats.php 85% from 13 tests
Analyzing the main PHP file in "Blocked Banners Stats" version 0.0.1
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("blocked-banners-stats.php" instead of "blbnstats.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected790 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 133 | 397 | 782 |
JavaScript | 3 | 0 | 9 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 31.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 5.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 5 | 25.00% |
▷ Public methods | 13 | 65.00% |
▷ Protected methods | 7 | 35.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 31 | |
▷ Global constants | 4 | 12.90% |
▷ Class constants | 27 | 87.10% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin