76% easy-team-builder

Code Review | Easy Team Builder

WordPress plugin Easy Team Builder scored76%from 54 tests.

About plugin

  • Plugin page: easy-team-builder
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Sep 4, 2021
  • Latest release: Sep 4, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: noorakhtar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /289 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.67MB] [CPU: ▼16.72ms] Passed 4 tests

A check of server-side resources used by Easy Team Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.81 ▼5.09
Dashboard /wp-admin3.33 ▲0.0350.02 ▼1.82
Posts /wp-admin/edit.php3.39 ▲0.0352.50 ▼1.50
Add New Post /wp-admin/post-new.php3.12 ▼2.7738.13 ▼58.48
Media Library /wp-admin/upload.php3.26 ▲0.0337.69 ▲2.27
Add New Member /wp-admin/post-new.php?post_type=our_team3.1235.07
All team members /wp-admin/edit.php?post_type=our_team3.3037.12
Settings /wp-admin/edit.php?post_type=our_team&page=etb-settings-pages3.2333.94

Server storage [IO: ▲2.95MB] [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: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Team Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲17813.64 ▼0.549.42 ▲7.6436.54 ▼7.15
Dashboard /wp-admin2,248 ▲745.79 ▲0.2092.62 ▼6.2243.44 ▼2.16
Posts /wp-admin/edit.php2,155 ▲582.25 ▲0.2736.42 ▼0.9837.73 ▲0.85
Add New Post /wp-admin/post-new.php1,568 ▲4023.25 ▲0.46639.94 ▲23.4735.97 ▼29.51
Media Library /wp-admin/upload.php1,453 ▲504.37 ▲0.1795.28 ▼7.3444.27 ▼3.97
Add New Member /wp-admin/post-new.php?post_type=our_team6,23119.62895.4236.83
All team members /wp-admin/edit.php?post_type=our_team1,1252.2140.7132.57
Settings /wp-admin/edit.php?post_type=our_team&page=etb-settings-pages1,2802.6654.2635.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=our_team
    • > Notice in wp-content/plugins/easy-team-builder/easy-team-builder.php+191
    Undefined index: designation
    • > GET request to /wp-admin/post-new.php?post_type=our_team
    • > Notice in wp-content/plugins/easy-team-builder/easy-team-builder.php+192
    Undefined index: facebookProfile
    • > GET request to /wp-admin/post-new.php?post_type=our_team
    • > Notice in wp-content/plugins/easy-team-builder/easy-team-builder.php+193
    Undefined index: twitterProfile
    • > GET request to /wp-admin/post-new.php?post_type=our_team
    • > Notice in wp-content/plugins/easy-team-builder/easy-team-builder.php+194
    Undefined index: linkedProfile
    • > GET request to /wp-admin/post-new.php?post_type=our_team
    • > Notice in wp-content/plugins/easy-team-builder/easy-team-builder.php+195
    Undefined index: githubProfile

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-team-builder/inc/functions.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-team-builder/inc/etbSettingsStyle.php:40

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots need descriptions #3, #0 in easy-team-builder/assets to your readme.txt
  • Screenshots: Add an image for screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.)
You can look at the official readme.txt

easy-team-builder/easy-team-builder.php 69% from 13 tests

"Easy Team Builder" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.2")

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 detected13,427 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,546
CSS51,551153,511
PHP34740326
JavaScript36844

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There are no PNG files in this plugin