Benchmarks
Plugin footprint 65% 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.10MB] [CPU: ▼0.28ms] Passed 4 tests
An overview of server-side resources used by Custom Referral Spam Blocker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 46.85 ▲3.45 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.12 ▲0.86 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.06 ▼0.95 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.97 ▼4.48 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.70 ▲6.17 |
Custom Referral Spam Blocker /wp-admin/options-general.php?page=custom_referral_spam_blocker | 3.88 | 32.74 |
Server storage [IO: ▲0.86MB] [DB: ▲0.06MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
crsb_spammers_list |
crsb_db_version |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Referral Spam Blocker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.42 ▲0.07 | 1.67 ▼0.05 | 43.05 ▲1.12 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.02 | 93.73 ▲7.41 | 42.18 ▼0.99 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.04 | 36.74 ▲1.04 | 31.47 ▼6.17 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 17.86 ▼5.25 | 602.21 ▼84.18 | 71.77 ▲21.68 |
Media Library /wp-admin/upload.php | 1,401 ▲7 | 4.24 ▲0.06 | 94.14 ▼1.50 | 41.57 ▼3.97 |
Custom Referral Spam Blocker /wp-admin/options-general.php?page=custom_referral_spam_blocker | 831 | 1.99 | 22.76 | 64.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/custom-referral-spam-blocker/idna-convert/idna_convert.class.php+426
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- crsb_db_version
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- crsb_spammers_list
Smoke tests 50% 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 0% 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/custom-referral-spam-blocker/idna-convert/example.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-referral-spam-blocker/custom-referral-spam-blocker.php:61
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: referrals, spam, seo, referral spam
custom-referral-spam-blocker/custom-referral-spam-blocker.php Passed 13 tests
The principal PHP file in "Custom Referral Spam Blocker" v. 1.4.6 is loaded by WordPress automatically on each request
87 characters long description:
This plugin blocks referral spam bots which are screwing up your Google Analytics data.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,018 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 139 | 406 | 3,816 |
Markdown | 1 | 34 | 0 | 172 |
JSON | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 140.00 |
▷ Minimum class complexity | 67.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 8.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 35 | |
▷ Static methods | 10 | 28.57% |
▷ Public methods | 10 | 28.57% |
▷ Protected methods | 17 | 48.57% |
▷ Private methods | 8 | 22.86% |
Functions | 20 | |
▷ Named functions | 20 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.47MB with 0.41MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250_source.png | 482.15KB | 66.93KB | ▼ 86.12% |