10% my-client-builder

Code Review | Name: My Client Builder

WordPress plugin Name: My Client Builderscored 10% from 54 tests.

About plugin

  • Plugin page: my-client-builder
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 9, 2015
  • Latest release: Sep 15, 2015
  • Number of updates: 9
  • Update frequency: every 0.9 days
  • Top authors: GVATELLC (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 643 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Compile error in wp-content/plugins/my-client-builder/index.php+122
    Cannot use "self" when no class scope is active

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.17ms] Passed 4 tests

A check of server-side resources used by Name: My Client Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.95 ▼4.24
Dashboard /wp-admin3.31 ▲0.0046.68 ▼5.37
Posts /wp-admin/edit.php3.36 ▲0.0046.21 ▲0.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.15 ▼8.97
Media Library /wp-admin/upload.php3.23 ▲0.0036.10 ▼6.10

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Name: My Client Builder: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.171.58 ▼0.1338.91 ▼7.78
Dashboard /wp-admin2,206 ▲154.84 ▼1.21100.80 ▼4.3239.59 ▼4.47
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0739.00 ▲0.2434.07 ▲0.71
Add New Post /wp-admin/post-new.php1,542 ▲718.48 ▼4.75620.35 ▼50.8248.08 ▼10.15
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0594.86 ▼10.9245.12 ▼0.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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)
Everything seems fine, however this is by no means 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/my-client-builder/popup.php:22
    • > PHP Fatal error
      Cannot use "self" when no class scope is active in wp-content/plugins/my-client-builder/index.php on line 122

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Name: My Client Builder=== )
You can look at the official readme.txt

my-client-builder/index.php 85% from 13 tests

"Name: My Client Builder" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("my-client-builder.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin819 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS3839479
PHP21113317
JavaScript391423

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
template/img/arrow_right.png8.78KB1.40KB▼ 84.10%
template/img/arrow_left.png8.87KB1.43KB▼ 83.90%
colorbox/images/loading_background.png0.13KB0.15KB0.00%
images/logo.png22.28KB11.05KB▼ 50.41%
colorbox/images/overlay.png0.11KB0.15KB0.00%