Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/anti-block/functions.php+16
Use of undefined constant SETTINGS - assumed 'SETTINGS' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.06ms] Passed 4 tests
An overview of server-side resources used by Anti-block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.34 ▼0.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.46 ▼3.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.83 ▲3.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.50 ▼0.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.35 ▼0.21 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Anti-block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.73 ▼0.66 | 1.76 ▼0.33 | 44.74 ▼3.93 |
Dashboard /wp-admin | 2,203 ▲15 | 5.82 ▲0.01 | 100.20 ▼18.10 | 40.78 ▼3.42 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.99 ▼0.02 | 40.30 ▲4.40 | 37.07 ▲5.96 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.21 ▲5.53 | 607.45 ▼24.69 | 47.44 ▼2.63 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.00 | 104.39 ▲7.62 | 44.25 ▲1.91 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/anti-block/functions.php+16
Use of undefined constant SETTINGS - assumed 'SETTINGS' (this will throw an Error in a future version of PHP)
- The plugin did not uninstall successfully, leaving 8 files (0.02MB) in the plugin directory
- (new file) readme.txt
- (new file) classes/detection.php
- (new file) functions.php
- (new file) popup.php
- (new file) js/advertisement.js
- (new file) antiblock.php
- (new file) classes/settings.php
- (new file) classes/setup.php
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/anti-block/popup.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: message in wp-content/plugins/anti-block/popup.php on line 61
- > PHP Notice
Undefined variable: no in wp-content/plugins/anti-block/popup.php on line 67
- > PHP Notice
Undefined variable: yes in wp-content/plugins/anti-block/popup.php on line 65
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/anti-block/classes/settings.php:169
- > PHP Notice
Undefined variable: title in wp-content/plugins/anti-block/popup.php on line 60
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/anti-block/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/anti-block/functions.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== anti-block ===
)
anti-block/antiblock.php 92% from 13 tests
The main PHP script in "Anti-block" version 1.0.6 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("anti-block.php" instead of "antiblock.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected284 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 67 | 63 | 281 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 4 | 20.00% |
▷ Public methods | 19 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin