84% wp-team-members

Code Review | WP Team Members

WordPress plugin WP Team Members scored84%from 54 tests.

About plugin

  • Plugin page: wp-team-members
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 6.3.1
  • First release: Mar 21, 2016
  • Latest release: Dec 12, 2018
  • Number of updates: 18
  • Update frequency: every 55.5 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,854 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.04MB] [CPU: ▼3.90ms] Passed 4 tests

Analyzing server-side resources used by WP Team Members
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.86 ▼6.79
Dashboard /wp-admin3.35 ▲0.0451.14 ▼3.66
Posts /wp-admin/edit.php3.40 ▲0.0452.17 ▼0.12
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.54 ▼5.04
Media Library /wp-admin/upload.php3.27 ▲0.0436.06 ▲0.78
Team Members /wp-admin/edit.php?post_type=cb-team-member3.3238.14
Add New /wp-admin/post-new.php?post_type=cb-team-member3.4049.51

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Team Members
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,157 ▲41113.96 ▼0.6913.45 ▲11.7458.47 ▲12.98
Dashboard /wp-admin2,230 ▲424.84 ▼0.9798.96 ▼8.6840.52 ▼2.15
Posts /wp-admin/edit.php2,116 ▲272.02 ▲0.0040.30 ▲4.6035.58 ▲2.14
Add New Post /wp-admin/post-new.php1,565 ▲4618.69 ▼4.35649.90 ▼11.1360.89 ▲5.31
Media Library /wp-admin/upload.php1,418 ▲304.21 ▼0.0294.38 ▼11.6245.42 ▼0.16
Team Members /wp-admin/edit.php?post_type=cb-team-member1,0861.9532.0728.28
Add New /wp-admin/post-new.php?post_type=cb-team-member2,3597.90168.2970.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-team-members/index.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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:
  • Screenshots: Screenshot #2 (screenshot-2) image missing
You can take inspiration from this readme.txt

wp-team-members/index.php 92% from 13 tests

Analyzing the main PHP file in "WP Team Members" version 1.2
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-team-members.php" instead of "index.php")

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 plugin1,199 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1287510609
CSS310217491
PHP1431399

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin