Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.63ms] 75% from 4 tests
A check of server-side resources used by Agreeable
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 819.44ms on /wp-admin/options-general.php?page=terms-options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.72 ▼0.32 |
Dashboard /wp-admin | 3.40 ▲0.09 | 52.11 ▼0.94 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 52.51 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.94 ▼6.48 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.30 ▲1.24 |
Agreeable /wp-admin/options-general.php?page=terms-options | 3.32 | 819.44 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Agreeable
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.37 ▲0.02 | 4.00 ▲2.04 | 43.74 ▲4.77 |
Dashboard /wp-admin | 2,198 ▲24 | 5.55 ▼0.09 | 86.90 ▼8.21 | 40.43 ▼9.71 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.99 ▼0.01 | 38.29 ▼3.33 | 37.23 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,530 ▲1 | 22.16 ▼0.94 | 685.01 ▲42.43 | 48.47 ▼4.81 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.22 ▲0.04 | 118.61 ▲10.57 | 45.81 ▲1.66 |
Agreeable /wp-admin/options-general.php?page=terms-options | 949 | 2.00 | 22.77 | 62.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=terms-options
- > Notice in wp-content/plugins/agreeable/includes/settings.php+67
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/agreeable/kp_cross_promote.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/agreeable/includes/settings.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=terms-options
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=terms-options 185 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=terms-options
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=terms-options 189 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=terms-options
- > Network (severe)
http://kraftpress.it/wp-content/themes/kraftpress/img/kraftpress-logo.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (21 tag instead of maximum 10)
agreeable/agreeable.php Passed 13 tests
"Agreeable" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Add a required "Agree to terms" checkbox to login and/or register forms.
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
Everything looks great! No dangerous files found in this plugin988 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 58 | 8 | 403 |
PHP | 3 | 222 | 38 | 391 |
PO File | 3 | 57 | 57 | 176 |
JavaScript | 2 | 4 | 2 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 68.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner.png | 17.63KB | 1.73KB | ▼ 90.18% |