84% member-showcase-block

Code Review | Member Showcase Block

WordPress plugin Member Showcase Block scored84%from 54 tests.

About plugin

  • Plugin page: member-showcase-b...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jun 28, 2022
  • Latest release: Jun 29, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: ahsan03 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /259 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
This plugin's installer ran successfully

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

A check of server-side resources used by Member Showcase Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.83 ▼1.25
Dashboard /wp-admin3.37 ▲0.0647.40 ▲0.55
Posts /wp-admin/edit.php3.42 ▲0.0644.90 ▼6.90
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.49 ▲3.00
Media Library /wp-admin/upload.php3.29 ▲0.0634.69 ▲1.20

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Member Showcase Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9314.73 ▼0.022.42 ▲0.5941.36 ▼3.94
Dashboard /wp-admin2,206 ▲145.86 ▲0.90100.85 ▼15.0239.74 ▼1.00
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0136.99 ▼3.3434.44 ▼1.28
Add New Post /wp-admin/post-new.php6,567 ▲5,03429.38 ▲6.18830.17 ▲132.3258.88 ▲2.10
Media Library /wp-admin/upload.php1,382 ▼34.17 ▲0.0096.82 ▲2.9542.96 ▲1.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/member-showcase-block/includes/patterns/block-patterns.php:76

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

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

member-showcase-block/member-showcase.php 85% from 13 tests

The main PHP script in "Member Showcase Block" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("member-showcase-block.php" instead of "member-showcase.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,464 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript74601,691
JSON200440
Sass2370242
PHP3225186
CSS2005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin