84% brads-entity-attribute-value-database

Code Review | Brad's Entity Attribute Value Database

WordPress plugin Brad's Entity Attribute Value Database scored84%from 54 tests.

About plugin

  • Plugin page: brads-entity-attr...
  • Plugin version: 2.13
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.7
  • WordPress version: 6.3.1
  • First release: Mar 23, 2021
  • Latest release: Jun 30, 2021
  • Number of updates: 22
  • Update frequency: every 4.5 days
  • Top authors: mobilebsmith (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /553 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼1.95ms] Passed 4 tests

Analyzing server-side resources used by Brad's Entity Attribute Value Database
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3943.86 ▲4.43
Dashboard /wp-admin3.70 ▲0.4051.91 ▲0.53
Posts /wp-admin/edit.php3.82 ▲0.4655.93 ▲5.10
Add New Post /wp-admin/post-new.php6.28 ▲0.4091.83 ▼11.15
Media Library /wp-admin/upload.php3.63 ▲0.4038.35 ▼1.61
Manage Settings /wp-admin/admin.php?page=eav_manage_settings3.5935.40
Manage Import /wp-admin/admin.php?page=eav_manage_import3.5938.33
Install Demo Apps /wp-admin/admin.php?page=eav_manage_apps3.5933.23

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: 4 new tables, 6 new options
New tables
wp_eav_attrib
wp_eav_layout
wp_eav_tbl
wp_eav_entity
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Brad's Entity Attribute Value Database
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲5613.24 ▼1.061.59 ▼0.3042.98 ▲0.81
Dashboard /wp-admin2,248 ▲455.86 ▲1.00114.61 ▲10.3843.51 ▲1.46
Posts /wp-admin/edit.php2,127 ▲452.03 ▼0.0141.56 ▲4.5738.22 ▲0.65
Add New Post /wp-admin/post-new.php1,567 ▲2223.32 ▲4.94615.75 ▼17.5560.56 ▲1.14
Media Library /wp-admin/upload.php1,427 ▲274.25 ▲0.02108.94 ▼0.2544.62 ▼6.20
Manage Settings /wp-admin/admin.php?page=eav_manage_settings9032.0326.6729.84
Manage Import /wp-admin/admin.php?page=eav_manage_import8132.0525.4528.60
Install Demo Apps /wp-admin/admin.php?page=eav_manage_apps8022.0326.2130.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/brads-entity-attribute-value-database/includes/shortcodes.php:1497
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/brads-entity-attribute-value-database/entity-attribute-value-database.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/brads-entity-attribute-value-database/uninstall.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brads-entity-attribute-value-database/includes/admin_menu.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid URI ("")
The official readme.txt might help

brads-entity-attribute-value-database/entity-attribute-value-database.php 92% from 13 tests

The primary PHP file in "Brad's Entity Attribute Value Database" version 2.13 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brads-entity-attribute-value-database.php" instead of "entity-attribute-value-database.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,547 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43542532,547

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin