78% client-partner-showcase

Code Review | Client Partner Showcase

WordPress plugin Client Partner Showcase scored78%from 54 tests.

About plugin

  • Plugin page: client-partner-sh...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2019
  • Latest release: Nov 22, 2023
  • Number of updates: 17
  • Update frequency: every 86.5 days
  • Top authors: wpdiscover (47.06%)ratinatemplates (47.06%)nickmart111 (17.65%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,605 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.09MB] [CPU: ▼3.52ms] Passed 4 tests

A check of server-side resources used by Client Partner Showcase
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0735.33 ▼6.07
Dashboard /wp-admin3.41 ▲0.1049.54 ▲2.92
Posts /wp-admin/edit.php3.51 ▲0.1548.37 ▼2.16
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.94 ▼8.77
Media Library /wp-admin/upload.php3.34 ▲0.1137.95 ▲5.19
Add New Client /wp-admin/post-new.php?post_type=client_partner3.5249.03
All Client /wp-admin/edit.php?post_type=client_partner3.3838.79

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_nkcps_client_partner_widget
client_partner_default_Settings_new
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Client Partner Showcase
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲18813.66 ▼1.0611.61 ▲9.9436.16 ▼7.87
Dashboard /wp-admin2,231 ▲545.62 ▼0.0595.84 ▲0.5541.71 ▼5.12
Posts /wp-admin/edit.php2,139 ▲392.01 ▲0.0340.57 ▼3.4636.68 ▼0.85
Add New Post /wp-admin/post-new.php1,561 ▲3123.31 ▲0.14628.36 ▼18.1761.30 ▲12.65
Media Library /wp-admin/upload.php1,436 ▲364.29 ▲0.0994.81 ▼1.1843.36 ▲1.33
Add New Client /wp-admin/post-new.php?post_type=client_partner2,1304.4987.46130.90
All Client /wp-admin/edit.php?post_type=client_partner1,1081.9032.2431.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_nkcps_client_partner_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • client_partner_default_Settings_new
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/client-partner-showcase/ink/help.php
    • > /wp-content/plugins/client-partner-showcase/template/designs/style.php
  • 61× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/client-partner-showcase/template/designs/style.php on line 10
    • > PHP Notice
      Undefined variable: section_padding_top_bottom_size in wp-content/plugins/client-partner-showcase/template/designs/style.php on line 61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/client-partner-showcase/ink/admin/add-cli.php:4
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/client-partner-showcase/template/designs/style.php on line 107
    • > PHP Notice
      Undefined variable: section_padding_left_right_size in wp-content/plugins/client-partner-showcase/template/designs/style.php on line 61
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/client-partner-showcase/template/designs/style.php on line 81
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/client-partner-showcase/template/designs/style.php on line 34
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/client-partner-showcase/template/designs/style.php on line 34
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/client-partner-showcase/template/designs/style.php on line 55
    • > PHP Warning
      Use of undefined constant nkcps_client_partner_directory_url - assumed 'nkcps_client_partner_directory_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/client-partner-showcase/ink/admin/add-cli-js.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: partner, logo carousal, client, sponsors

client-partner-showcase/client-partner.php 92% from 13 tests

The primary PHP file in "Client Partner Showcase" version 2.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("client-partner-showcase.php" instead of "client-partner.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected9,479 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
CSS111731113,791
JavaScript75009681,993
Sass1319221,158
LESS1319311,149
PHP1711269884
SVG100504

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.50
▷ Minimum class complexity5.00
▷ Maximum class complexity12.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/design/logo.png4.93KB3.45KB▼ 29.98%
assets/images/icon.png0.27KB0.26KB▼ 1.83%