Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼1.38ms] Passed 4 tests
Analyzing server-side resources used by ClickCease Click Fraud Protection
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 42.72 ▲0.66 |
Dashboard /wp-admin | 3.58 ▲0.27 | 47.83 ▼2.36 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 50.37 ▲3.90 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.20 | 85.38 ▼7.72 |
Media Library /wp-admin/upload.php | 3.44 ▲0.20 | 40.58 ▲4.93 |
Server storage [IO: ▲2.75MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
cc_send_plugin_state |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
cc_send_plugin_latest_version |
db_upgraded |
cc-monitoring-date |
widget_recent-comments |
Browser metrics Passed 4 tests
ClickCease Click Fraud Protection: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲44 | 14.72 ▲0.37 | 1.74 ▼0.10 | 44.37 ▼4.31 |
Dashboard /wp-admin | 2,208 ▲34 | 5.51 ▼0.13 | 91.82 ▼10.03 | 40.95 ▼2.26 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.96 ▲0.01 | 40.75 ▲2.99 | 36.30 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.19 ▲0.11 | 665.68 ▲16.73 | 52.69 ▲2.13 |
Media Library /wp-admin/upload.php | 1,410 ▲16 | 4.17 ▼0.02 | 98.40 ▼1.47 | 42.39 ▲0.22 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- cc_send_plugin_latest_version
- widget_recent-posts
- cc_send_plugin_state
- cc-monitoring-date
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 10× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant clickcease_plugin_PLUGIN_PATH - assumed 'clickcease_plugin_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/clickcease-click-fraud-protection/classes/rtiService.php on line 2
- > PHP Warning
require_once(clickcease_plugin_PLUGIN_PATH/classes/enums.php): failed to open stream: No such file or directory in wp-content/plugins/clickcease-click-fraud-protection/classes/logService.php on line 73
- > PHP Fatal error
require_once(): Failed opening required 'clickcease_plugin_PLUGIN_PATH/classes/logService.php' (include_path='.:/usr/share/php') in wp-content/plugins/clickcease-click-fraud-protection/classes/formService.php on line 51
- > PHP Warning
Use of undefined constant clickcease_plugin_PLUGIN_PATH - assumed 'clickcease_plugin_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/clickcease-click-fraud-protection/classes/formService.php on line 51
- > PHP Fatal error
require_once(): Failed opening required 'clickcease_plugin_PLUGIN_PATHclasses/enums.php' (include_path='.:/usr/share/php') in wp-content/plugins/clickcease-click-fraud-protection/classes/rtiService.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clickcease-click-fraud-protection/classes/routes.php:12
- > PHP Warning
Use of undefined constant clickcease_plugin_PLUGIN_PATH - assumed 'clickcease_plugin_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/clickcease-click-fraud-protection/classes/logService.php on line 73
- > PHP Warning
require_once(clickcease_plugin_PLUGIN_PATHclasses/enums.php): failed to open stream: No such file or directory in wp-content/plugins/clickcease-click-fraud-protection/classes/rtiService.php on line 2
- > PHP Warning
require_once(clickcease_plugin_PLUGIN_PATH/classes/logService.php): failed to open stream: No such file or directory in wp-content/plugins/clickcease-click-fraud-protection/classes/formService.php on line 51
- > PHP Fatal error
require_once(): Failed opening required 'clickcease_plugin_PLUGIN_PATH/classes/enums.php' (include_path='.:/usr/share/php') in wp-content/plugins/clickcease-click-fraud-protection/classes/logService.php on line 73
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Contributors: Contributors not specified
clickcease-click-fraud-protection/clickcease.php 92% from 13 tests
The entry point to "ClickCease Click Fraud Protection" version 3.2.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("clickcease-click-fraud-protection.php" instead of "clickcease.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,208 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 123 | 51 | 1,052 |
JavaScript | 2 | 7 | 3 | 61 |
Markdown | 1 | 32 | 0 | 60 |
HTML | 2 | 3 | 20 | 21 |
JSON | 1 | 0 | 0 | 13 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 6 | 50.00% |
▷ Concrete classes | 6 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 16 | 26.23% |
▷ Public methods | 46 | 75.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 24.59% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 57 | |
▷ Global constants | 3 | 5.26% |
▷ Class constants | 54 | 94.74% |
▷ Public constants | 54 | 100.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.09MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/img/Logo_Login.png | 47.15KB | 15.87KB | ▼ 66.33% |
includes/assets/img/logo.png | 44.30KB | 37.89KB | ▼ 14.47% |