Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.22ms] Passed 4 tests
Server-side resources used by Block Referer Spam
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.11 ▼0.13 |
Dashboard /wp-admin | 3.41 ▲0.10 | 48.45 ▲2.35 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 47.63 ▲0.73 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 79.75 ▼11.04 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.08 ▲1.55 |
Referer Spam /wp-admin/admin.php?page=ref-spam-block | 3.35 | 35.57 |
All Blocked Sites /wp-admin/admin.php?page=ref-spam-list | 3.30 | 32.73 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- You have illegally modified 2 files (1.40KB) outside of "wp-content/plugins/block-referer-spam/" and "wp-content/uploads/"
- (modified) .htaccess
- (new file) .htaccess.bak
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Block Referer Spam
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.36 ▲0.00 | 1.94 ▲0.35 | 43.58 ▲3.66 |
Dashboard /wp-admin | 2,219 ▲45 | 5.57 ▲0.05 | 96.02 ▲12.37 | 43.21 ▼0.52 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.01 ▲0.03 | 34.89 ▼1.06 | 35.81 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.21 ▲0.06 | 632.60 ▼59.87 | 60.65 ▲3.84 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.23 ▲0.03 | 104.51 ▼3.55 | 43.90 ▼1.60 |
Referer Spam /wp-admin/admin.php?page=ref-spam-block | 1,069 | 2.05 | 26.93 | 32.70 |
All Blocked Sites /wp-admin/admin.php?page=ref-spam-list | 905 | 1.99 | 23.97 | 26.40 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
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 errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ref-spam-list
- > Notice in wp-content/plugins/block-referer-spam/admin/blocked-list.php+72
Undefined variable: _SESSION
SRP 50% 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
The following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(REFSPAMBLOCKER_PATHlib/RefSpamBlocker.php): failed to open stream: No such file or directory in wp-content/plugins/block-referer-spam/ref-spam-blocker.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/block-referer-spam/admin/_sidebar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/block-referer-spam/admin/blocked-list.php:2
- > PHP Warning
Use of undefined constant REFSPAMBLOCKER_PATH - assumed 'REFSPAMBLOCKER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/block-referer-spam/ref-spam-blocker.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/block-referer-spam/admin/dashboard.php:2
- > PHP Fatal error
require_once(): Failed opening required 'REFSPAMBLOCKER_PATHlib/RefSpamBlocker.php' (include_path='.:/usr/share/php') in wp-content/plugins/block-referer-spam/ref-spam-blocker.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/block-referer-spam/admin/pro-options.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Admin Interface) image required
- Tags: There are too many tags (33 tag instead of maximum 10)
block-referer-spam/ref-spam-blocker.php 77% from 13 tests
The entry point to "Block Referer Spam" version 1.1.9.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("block-referer-spam.php" instead of "ref-spam-blocker.php")
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 detected4,457 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 234 | 570 | 4,048 |
PO File | 2 | 84 | 83 | 386 |
CSS | 1 | 4 | 3 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 104.33 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 6.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 10 | 17.86% |
▷ Public methods | 25 | 44.64% |
▷ Protected methods | 17 | 30.36% |
▷ Private methods | 14 | 25.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
2 PNG files occupy 0.41MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 407.50KB | 134.26KB | ▼ 67.05% |
assets/images/brand.png | 10.70KB | 5.52KB | ▼ 48.46% |