94% team-member-divi

Code Review | Divi Team Member

WordPress plugin Divi Team Member scored 94% from 54 tests.

About plugin

  • Plugin page: team-member-divi
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-4.9.8
  • WordPress version: 5.8.1
  • First release: Oct 17, 2018
  • Latest release: Oct 18, 2018
  • Number of updates: 15
  • Update frequency: every 0.7 days
  • Top authors: skshourov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,418 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼145.48ms] Passed 4 tests

Server-side resources used by Divi Team Member
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.21 ▲13.60
Dashboard /wp-admin3.06 ▲0.0146.54 ▼6.97
Posts /wp-admin/edit.php3.11 ▲0.0144.13 ▼6.39
Add New Post /wp-admin/post-new.php5.43 ▼0.0193.21 ▼578.22
Media Library /wp-admin/upload.php3.00 ▲0.0051.74 ▲9.66

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Divi Team Member: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.22 ▲0.3010.87 ▼0.1854.51 ▼0.95
Dashboard /wp-admin2,967 ▲366.10 ▼0.01143.13 ▼4.92118.65 ▼2.00
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0065.88 ▲0.6596.50 ▲9.65
Add New Post /wp-admin/post-new.php1,683 ▲18515.75 ▼3.09420.83 ▲21.69114.23 ▼0.82
Media Library /wp-admin/upload.php1,807 ▼35.02 ▲0.00158.01 ▼1.43123.78 ▲1.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/team-member-divi/includes/TeamMember.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-member-divi/team-member.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/team-member-divi/includes/modules/TeamMember/TeamMember.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: divi theme, divi theme member profile, team member, divi, divi team member...

team-member-divi/team-member.php 85% from 13 tests

The primary PHP file in "Divi Team Member" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("team-member-divi.php" instead of "team-member.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin16,585 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON30015,459
Markdown12120453
PHP44258377
CSS303145
PO File14349111
JSX16230
JavaScript54310

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner.png88.63KB25.63KB▼ 71.08%
icon.png27.07KB10.19KB▼ 62.35%