Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.69ms] Passed 4 tests
An overview of server-side resources used by Stop Referrer Spam
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 45.97 ▲5.46 |
Dashboard /wp-admin | 3.42 ▲0.07 | 53.54 ▼14.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.90 ▼2.35 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.64 ▼13.03 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 43.35 ▲2.85 |
Referral Spam /wp-admin/options-general.php?page=srs-config | 3.77 | 40.69 |
Server storage [IO: ▲0.03MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
WSRS_csrf_token |
widget_recent-comments |
WSRS_spam_blacklist |
can_compress_scripts |
Browser metrics Passed 4 tests
Stop Referrer Spam: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.17 ▼0.11 | 1.76 ▼0.12 | 43.39 ▲2.12 |
Dashboard /wp-admin | 2,199 ▲19 | 5.70 ▲0.12 | 86.10 ▼10.71 | 37.14 ▼3.17 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.04 | 34.79 ▼8.96 | 34.92 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 22.88 ▼0.26 | 704.88 ▲19.26 | 61.20 ▲10.84 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▲0.00 | 100.31 ▼5.89 | 44.33 ▼5.25 |
Referral Spam /wp-admin/options-general.php?page=srs-config | 5,480 | 2.26 | 28.72 | 58.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- WSRS_csrf_token
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/stop-referrer-spam/stop-referrer-spam.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: data in wp-content/plugins/stop-referrer-spam/views/config-page.php on line 38
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/stop-referrer-spam/views/config-page.php on line 41
- > PHP Notice
Undefined variable: data in wp-content/plugins/stop-referrer-spam/views/config-page.php on line 41
- > PHP Notice
Undefined variable: data in wp-content/plugins/stop-referrer-spam/views/config-page.php on line 35
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/stop-referrer-spam/views/config-page.php on line 38
- > PHP Warning
array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/stop-referrer-spam/views/config-page.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'WSRS_Helper' not found in wp-content/plugins/stop-referrer-spam/views/config-page.php:51
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 35 tag instead of maximum 10
stop-referrer-spam/stop-referrer-spam.php Passed 13 tests
The principal PHP file in "Stop Referrer Spam" v. 1.3.2 is loaded by WordPress automatically on each request
63 characters long description:
Blocks unwanted referral spam that mess up your analytics data!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected572 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 108 | 110 | 572 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 13 | 30.95% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 7 | 87.50% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected