89% affiliate-product-review-blocks

Code Review | MustenBerg - Affiliate Product Review Gutenberg Blocks

WordPress plugin MustenBerg - Affiliate Product Review Gutenberg Blocks scored89%from 54 tests.

About plugin

  • Plugin page: affiliate-product...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2022
  • Latest release: Jan 10, 2022
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: wpthemesstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.25MB] [CPU: ▼11.62ms] Passed 4 tests

Server-side resources used by MustenBerg - Affiliate Product Review Gutenberg Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.11 ▼5.92
Dashboard /wp-admin3.33 ▲0.0342.55 ▼3.13
Posts /wp-admin/edit.php3.38 ▲0.0347.99 ▼1.25
Add New Post /wp-admin/post-new.php4.82 ▼1.0653.96 ▼34.62
Media Library /wp-admin/upload.php3.25 ▲0.0333.57 ▼2.82

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MustenBerg - Affiliate Product Review Gutenberg Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲17213.71 ▼0.937.34 ▲5.3938.33 ▼9.40
Dashboard /wp-admin2,206 ▲214.86 ▼0.95107.25 ▲2.1040.77 ▼0.46
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0138.90 ▲2.5533.61 ▲0.13
Add New Post /wp-admin/post-new.php6,197 ▲4,66422.27 ▼0.88855.05 ▲187.1175.83 ▲24.52
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0599.91 ▼6.2442.64 ▼0.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

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
3 plugin tags: product block, gutenberg block, custom block

affiliate-product-review-blocks/plugin.php 85% from 13 tests

The main PHP file in "MustenBerg - Affiliate Product Review Gutenberg Blocks" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("affiliate-product-review-blocks.php" instead of "plugin.php")
  • Description: The description should be shorter than 140 characters (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,988 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript451691713,974
Sass136538616
CSS4445286
PHP3204699
SVG11013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 are no PNG files in this plugin