67% client-showcase

Code Review | Client Showcase

WordPress plugin Client Showcase scored 67% from 54 tests.

About plugin

  • Plugin page: client-showcase
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Oct 4, 2015
  • Latest release: Mar 23, 2017
  • Number of updates: 10
  • Update frequency: every 53.7 days
  • Top authors: dxladner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 4,278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲1.29ms] Passed 4 tests

This is a short check of server-side resources used by Client Showcase
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.61 ▼3.58
Dashboard /wp-admin3.42 ▲0.1270.45 ▲8.27
Posts /wp-admin/edit.php3.54 ▲0.1856.85 ▲2.76
Add New Post /wp-admin/post-new.php6.00 ▲0.12100.75 ▲6.70
Media Library /wp-admin/upload.php3.34 ▲0.1235.79 ▼0.71
Add New Client /wp-admin/post-new.php?post_type=client_showcase3.2738.52
All Clients /wp-admin/edit.php?post_type=client_showcase3.3940.33

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 10 new options
New WordPress options
client_showcase_list
theysaidso_admin_options
client_showcase_flush_rewrite_rules
can_compress_scripts
widget_theysaidso_widget
widget_client_showcase
client_showcase_list_display
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Client Showcase
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲814.47 ▲0.221.92 ▼0.0949.08 ▲2.25
Dashboard /wp-admin2,237 ▲314.88 ▲0.0398.99 ▼12.1043.08 ▲2.76
Posts /wp-admin/edit.php2,123 ▲341.99 ▼0.0439.90 ▲3.6236.00 ▼0.28
Add New Post /wp-admin/post-new.php1,573 ▲5318.52 ▼4.56645.69 ▼64.8346.88 ▼8.27
Media Library /wp-admin/upload.php1,422 ▲344.27 ▲0.0897.50 ▼6.6041.09 ▼6.15
Add New Client /wp-admin/post-new.php?post_type=client_showcase2,2197.80195.6369.37
Client Showcase Options /wp-admin/client_showcase_options.php260.440.1014.44
All Clients /wp-admin/edit.php?post_type=client_showcase1,0891.9331.2228.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_client_showcase
    • can_compress_scripts
    • widget_recent-comments
    • client_showcase_flush_rewrite_rules
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=client_showcase
    • > Notice in wp-content/plugins/client-showcase/client-showcase.php+98
    Trying to get property 'ID' of non-object

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/client-showcase/languages/index.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/client-showcase/client-showcase.php:26

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/client_showcase_options.php
    • > Network (severe)
    wp-admin/client_showcase_options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: client list, clients logo, client showcase, showcase clients, clients...

client-showcase/client-showcase.php Passed 13 tests

The entry point to "Client Showcase" version 1.2.0 is a PHP file that has certain tags in its header comment area
108 characters long description:
A WordPress plugin that displays client logo's in a list using a shortcode anywhere on the page and also has

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin463 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP47019423
CSS31427
JavaScript10113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity15.00
▷ Minimum class complexity6.00
▷ Maximum class complexity24.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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
11 PNG files occupy 0.43MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png16.23KB5.45KB▼ 66.42%
assets/screenshot-6.png52.77KB18.08KB▼ 65.73%
assets/screenshot-3.png54.16KB23.39KB▼ 56.81%
assets/banner-772x250.png14.33KB13.25KB▼ 7.56%
assets/icon-256x256.png8.96KB8.02KB▼ 10.51%