Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/coderlift-affiliate-compliance/cl-affiliate-compliance.php+20
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼62.95ms] Passed 4 tests
An overview of server-side resources used by Coderlift Affiliate Compliance
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 9.45 ▼28.40 |
Dashboard /wp-admin | 2.08 ▼1.27 | 5.68 ▼55.35 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.43 ▼70.37 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.90 ▼96.66 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.77 ▼29.40 |
CL Affiliate Compliance /wp-admin/options-general.php?page=cl-aff-comp | 2.08 | 5.31 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Coderlift Affiliate Compliance
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.60 ▼0.77 | 5.13 ▲3.38 | 45.46 ▲4.84 |
Dashboard /wp-admin | 2,216 ▲25 | 4.87 ▼1.03 | 101.70 ▼2.39 | 38.22 ▼6.36 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.01 ▲0.03 | 33.35 ▼7.56 | 31.16 ▼6.47 |
Add New Post /wp-admin/post-new.php | 1,544 ▲7 | 23.28 ▲4.90 | 688.29 ▲15.88 | 53.81 ▼4.28 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▼0.06 | 98.06 ▼11.66 | 40.18 ▼8.59 |
CL Affiliate Compliance /wp-admin/options-general.php?page=cl-aff-comp | 1,499 | 6.70 | 132.83 | 59.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/coderlift-affiliate-compliance/cl-affiliate-compliance.php+20
define(): Declaration of case-insensitive constants is deprecated
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=cl-aff-comp
- > Deprecated in wp-content/plugins/coderlift-affiliate-compliance/cl-affiliate-compliance.php+20
define(): Declaration of case-insensitive constants is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/coderlift-affiliate-compliance/cl-aff-comp-settings.php
- > /wp-content/plugins/coderlift-affiliate-compliance/cl-affiliate-compliance.php
- > /wp-content/plugins/coderlift-affiliate-compliance/cl-aff-comp-admin-script.php
- > /wp-content/plugins/coderlift-affiliate-compliance/cl-aff-comp-main-function.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (In this screenshot, point-1 is the settings menu of the plugin.) image not found
coderlift-affiliate-compliance/cl-affiliate-compliance.php 77% from 13 tests
"Coderlift Affiliate Compliance" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("coderlift-affiliate-compliance.php" instead of "cl-affiliate-compliance.php")
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected187 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 79 | 28 | 179 |
CSS | 1 | 0 | 1 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 were not PNG files found in your plugin