66% agreeable

Code Review | Agreeable

WordPress plugin Agreeable scored66%from 54 tests.

About plugin

  • Plugin page: agreeable
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2014
  • Latest release: Apr 4, 2016
  • Number of updates: 59
  • Update frequency: every 13.5 days
  • Top authors: buildcreate (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

1,000+ active /39,918 total downloads


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)
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1244.72 ▼0.32
Dashboard /wp-admin3.40 ▲0.0952.11 ▼0.94
Posts /wp-admin/edit.php3.51 ▲0.1552.51 ▲2.04
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.94 ▼6.48
Media Library /wp-admin/upload.php3.32 ▲0.0938.30 ▲1.24
Agreeable /wp-admin/options-general.php?page=terms-options3.32819.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

Browser metrics Passed 4 tests

An overview of browser requirements for Agreeable
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.37 ▲0.024.00 ▲2.0443.74 ▲4.77
Dashboard /wp-admin2,198 ▲245.55 ▼0.0986.90 ▼8.2140.43 ▼9.71
Posts /wp-admin/edit.php2,106 ▲31.99 ▼0.0138.29 ▼3.3337.23 ▲1.15
Add New Post /wp-admin/post-new.php1,530 ▲122.16 ▼0.94685.01 ▲42.4348.47 ▼4.81
Media Library /wp-admin/upload.php1,409 ▲124.22 ▲0.04118.61 ▲10.5745.81 ▲1.66
Agreeable /wp-admin/options-general.php?page=terms-options9492.0022.7762.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

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


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)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PO File35757176

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 code0.49
Average class complexity68.00
▷ Minimum class complexity68.00
▷ Maximum class complexity68.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/banner.png17.63KB1.73KB▼ 90.18%