84% team-member-block

Code Review | Team Member Block

WordPress plugin Team Member Block scored84%from 54 tests.

About plugin

  • Plugin page: team-member-block
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2020
  • Latest release: Mar 5, 2023
  • Number of updates: 9
  • Update frequency: every 105.7 days
  • Top authors: wpdevteam (66.67%)Asif2BD (33.33%)alam789 (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /17,485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼9.32ms] Passed 4 tests

Analyzing server-side resources used by Team Member Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.68 ▲2.50
Dashboard /wp-admin3.45 ▲0.1543.84 ▼4.38
Posts /wp-admin/edit.php3.57 ▲0.2144.23 ▼14.40
Add New Post /wp-admin/post-new.php6.06 ▲0.1885.64 ▼18.75
Media Library /wp-admin/upload.php3.37 ▲0.1534.40 ▲0.27

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Team Member Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.29 ▼1.451.79 ▲0.0442.05 ▼0.62
Dashboard /wp-admin2,206 ▲215.83 ▲0.0298.34 ▼3.4740.43 ▼2.41
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0534.77 ▼5.4634.98 ▼0.80
Add New Post /wp-admin/post-new.php1,656 ▲13724.93 ▲1.76666.10 ▲23.2336.24 ▼24.33
Media Library /wp-admin/upload.php1,388 ▲64.27 ▲0.1197.53 ▼2.9444.05 ▼0.63

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/team-member-block/team-member-block.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: team member, gutenberg blocks, block, profile, editor...

team-member-block/team-member-block.php Passed 13 tests

The main PHP file in "Team Member Block" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
Present your team members beautifully & gain instant credibility

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
Everything looks great! No dangerous files found in this plugin21,208 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
SVG501211,462
CSS74548,953
PHP9108165717
JavaScript411465
JSON10011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity32.40
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected