Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/spamreferrerblock/spam_referrer_block.php+104
Invalid argument supplied for foreach()
Server metrics [RAM: ▲0.02MB] [CPU: ▼291.25ms] Passed 4 tests
This is a short check of server-side resources used by SpamReferrerBlock
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.04 | 55.48 ▲5.63 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.63 ▼0.12 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 35.91 ▼1.68 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 89.81 ▼1,165.87 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 26.83 ▲2.66 |
Spam Referrer Block /wp-admin/options-general.php?page=srb | 3.35 | 179.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_srb_blacklist |
New WordPress options |
---|
srb_response |
srb_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by SpamReferrerBlock
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.82 ▲0.24 | 6.18 ▼0.44 | 2.79 ▲0.33 |
Dashboard /wp-admin | 2,897 ▲36 | 6.11 ▼0.06 | 115.76 ▼20.40 | 153.17 ▼6.45 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▼0.00 | 62.63 ▼4.47 | 141.07 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,714 ▲3 | 21.44 ▲0.16 | 469.87 ▲19.64 | 164.80 ▲10.12 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.50 ▼0.03 | 137.53 ▼11.11 | 187.18 ▲2.93 |
Spam Referrer Block /wp-admin/options-general.php?page=srb | 1,268 | 2.41 | 58.18 | 104.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_srb_blacklist
- Zombie WordPress options detected upon uninstall: 2 options
- srb_db_version
- srb_response
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=srb
- > Warning in wp-content/plugins/spamreferrerblock/spam_referrer_block.php+104
Invalid argument supplied for foreach()
- > GET request to /wp-admin/options-general.php?page=srb
- > Warning in wp-content/plugins/spamreferrerblock/spam_referrer_block.php+118
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/spamreferrerblock/admin_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/spamreferrerblock/spam_referrer_block.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: statistics, spam, analytics, dsampaolo, referrer
spamreferrerblock/spam_referrer_block.php 92% from 13 tests
The principal PHP file in "SpamReferrerBlock" v. 2.22 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("spamreferrerblock.php" instead of "spam_referrer_block.php")
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
There were no executable files found in this plugin336 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 72 | 9 | 324 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin