Benchmarks
Plugin footprint 83% 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.03MB] [CPU: ▼1.63ms] Passed 4 tests
A check of server-side resources used by Referer Spam Blocker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.46 ▼5.86 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.63 ▲0.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.91 ▼1.66 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.27 ▲0.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.98 ▲2.55 |
Referer Spam Blocker /wp-admin/options-general.php?page=wpm-rsb | 3.23 | 31.74 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
rsb_domain_list |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Referer Spam Blocker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.19 ▼1.19 | 1.66 ▼0.23 | 39.95 ▼5.83 |
Dashboard /wp-admin | 2,213 ▲25 | 4.87 ▼1.19 | 110.36 ▼4.18 | 42.08 ▼3.73 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.02 | 36.49 ▲1.45 | 35.44 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,545 ▲24 | 18.23 ▼5.07 | 643.17 ▼74.06 | 56.72 ▲0.63 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.20 ▲0.01 | 94.57 ▼13.76 | 42.35 ▼4.14 |
Referer Spam Blocker /wp-admin/options-general.php?page=wpm-rsb | 1,267 | 2.04 | 24.31 | 23.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- rsb_domain_list
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/referer-spam-blocker/views/admin-part-delete.php
- > /wp-content/plugins/referer-spam-blocker/views/access-denied.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/referer-spam-blocker/lib/referer-spam-blocker-admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/referer-spam-blocker/lib/referer-spam-blocker.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/referer-spam-blocker/views/admin-add-item.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/referer-spam-blocker/lib/referer-spam-blocker-admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/referer-spam-blocker/views/admin-add-item.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: block, domain, referer spam, referer, blacklist...
referer-spam-blocker/referer-spam-blocker.php Passed 13 tests
The entry point to "Referer Spam Blocker" version 0.4 is a PHP file that has certain tags in its header comment area
89 characters long description:
Blocks most common HTTP referer spam domains and allows you to easily add custom domains.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin315 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 75 | 23 | 315 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 13 | |
▷ Static methods | 7 | 53.85% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin