Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-block-referrer-spam/controllers/wpbrs-controller-blocker.php+188
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲0.37MB] [CPU: ▼6.47ms] Passed 4 tests
A check of server-side resources used by WP Block Referrer Spam
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 43.64 ▼1.11 |
Dashboard /wp-admin | 3.73 ▲0.39 | 46.81 ▼14.27 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 53.33 ▲7.59 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 87.64 ▼12.09 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 36.56 ▲1.61 |
Block Referrer Spam /wp-admin/tools.php?page=wp-block-referrer-spam | 3.68 | 34.06 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- The plugin illegally modified 1 file (118.15KB) outside of "wp-content/plugins/wp-block-referrer-spam/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wp-block-referrer-spam |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Block Referrer Spam
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.27 ▼0.08 | 2.03 ▼0.04 | 46.06 ▲4.07 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.03 | 89.99 ▲1.91 | 38.94 ▲1.97 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.04 | 34.21 ▼3.65 | 33.77 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.20 ▲0.22 | 680.67 ▲7.76 | 50.63 ▼6.72 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.05 | 94.68 ▼7.74 | 44.92 ▼2.16 |
Block Referrer Spam /wp-admin/tools.php?page=wp-block-referrer-spam | 888 | 1.75 | 27.63 | 45.32 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-block-referrer-spam/views/page-settings/page-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPBRS_Controller' not found in wp-content/plugins/wp-block-referrer-spam/controllers/wpbrs-controller-admin-notices.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-block-referrer-spam/views/errors/requirements-error.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPBRS_Model' not found in wp-content/plugins/wp-block-referrer-spam/models/wpbrs-model-admin-notices.php:14
- > PHP Fatal error
Uncaught Error: Class 'WPBRS_Controller' not found in wp-content/plugins/wp-block-referrer-spam/controllers/wpbrs-controller-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-block-referrer-spam/views/errors/htaccess-error.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPBRS_Controller' not found in wp-content/plugins/wp-block-referrer-spam/controllers/wpbrs-controller-cron.php:14
- > PHP Warning
Use of undefined constant WPBRS_REQUIRED_WP_VERSION - assumed 'WPBRS_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-block-referrer-spam/views/errors/requirements-error.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WPBRS_Controller' not found in wp-content/plugins/wp-block-referrer-spam/controllers/wpbrs-controller-blocker.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-block-referrer-spam/views/page-settings/page-settings-fields.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (33 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-block-referrer-spam/wp-block-referrer-spam.php Passed 13 tests
The main file in "WP Block Referrer Spam" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
104 characters long description:
Blocks referrer spammers from a community-contributed list. Keep your analytics data clean and accurate.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected819 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 396 | 650 | 724 |
JavaScript | 1 | 48 | 0 | 95 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 30 | 42.25% |
▷ Public methods | 42 | 59.15% |
▷ Protected methods | 21 | 29.58% |
▷ Private methods | 8 | 11.27% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 2 | 12.50% |
▷ Class constants | 14 | 87.50% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin