94% team-member-block

Code Review | Team Member Block

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

About plugin

  • Plugin page: team-member-block
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 5.9.2
  • First release: Jul 27, 2020
  • Latest release: Feb 13, 2022
  • Number of updates: 5
  • Update frequency: every 113.2 days
  • Top authors: Asif2BD (60%)wpdevteam (40%)alam789 (40%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 4,732 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼303.91ms] Passed 4 tests

Server-side resources used by Team Member Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1561.87 ▲4.21
Dashboard /wp-admin3.50 ▲0.0948.58 ▲4.18
Posts /wp-admin/edit.php3.72 ▲0.0944.11 ▲0.44
Add New Post /wp-admin/post-new.php7.00 ▼0.00111.80 ▼1,224.48
Media Library /wp-admin/upload.php3.37 ▲0.0836.40 ▲9.42

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Team Member Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.02 ▲0.356.12 ▼0.372.27 ▼0.78
Dashboard /wp-admin2,895 ▲346.09 ▼0.04116.19 ▼14.46154.76 ▼3.16
Posts /wp-admin/edit.php2,691 ▼33.24 ▼0.0068.96 ▲1.13147.18 ▲7.57
Add New Post /wp-admin/post-new.php1,733 ▲4322.64 ▲1.93467.22 ▼13.99153.80 ▼12.61
Media Library /wp-admin/upload.php1,695 ▼05.53 ▲0.03144.97 ▼5.60187.25 ▼8.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

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
  • 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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: gutenberg, gutenberg blocks, block, team member, team...

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

The entry point to "Team Member Block" version 1.1.0 is a PHP file that has certain tags in its header comment area
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 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin20,843 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
SVG501211,462
CSS52488,952
PHP87382415
JSON10011
JavaScript3003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity11.25
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods14
▷ Static methods321.43%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin