Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.88ms] 75% from 4 tests
Server-side resources used by Analytics Spam Blocker
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 2,001.02ms on /wp-admin/tools.php?page=analytics-spam-blocker)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.82 ▲6.36 |
Dashboard /wp-admin | 3.42 ▲0.12 | 54.23 ▼3.87 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.72 ▼0.01 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 89.01 ▼6.47 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.42 ▲2.83 |
Analytics Spam Blocker /wp-admin/tools.php?page=analytics-spam-blocker | 4.59 | 2,001.02 |
Server storage [IO: ▲0.12MB] [DB: ▲0.10MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- You have illegally modified 1 file (13.92KB) outside of "wp-content/plugins/analytics-spam-blocker/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 16 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
ajdg_spamblocker_user |
ajdg_spamblocker_version |
ajdg_spamblocker_hide_birthday |
ajdg_spamblocker_hide_review |
theysaidso_admin_options |
ajdg_spamblocker_stats |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Analytics Spam Blocker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.24 ▼0.34 | 1.66 ▲0.10 | 42.36 ▲1.81 |
Dashboard /wp-admin | 2,192 ▲15 | 5.62 ▲0.05 | 90.19 ▼2.23 | 43.83 ▲4.47 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▼0.01 | 38.13 ▼0.73 | 38.38 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.43 ▲0.36 | 705.32 ▲47.79 | 51.61 ▲6.98 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▲0.02 | 108.26 ▲7.34 | 46.89 ▲0.06 |
Analytics Spam Blocker /wp-admin/tools.php?page=analytics-spam-blocker | 1,200 | 1.67 | 24.59 | 64.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.10MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- ajdg_spamblocker_version
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
analytics-spam-blocker/analytics-spam-blocker.php 92% from 13 tests
Analyzing the main PHP file in "Analytics Spam Blocker" version 3.1.2
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
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
Everything looks great! No dangerous files found in this plugin518 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 114 | 156 | 465 |
CSS | 1 | 9 | 5 | 44 |
JavaScript | 1 | 0 | 11 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-report.png | 7.53KB | 3.13KB | ▼ 58.41% |
images/notification.png | 6.04KB | 2.66KB | ▼ 55.99% |
images/birthday.png | 4.24KB | 2.05KB | ▼ 51.49% |