89% logo-showcase-for-visual-composer

Code Review | Logo Showcase for VC Lite

WordPress plugin Logo Showcase for VC Lite scored89%from 54 tests.

About plugin

  • Plugin page: logo-showcase-for...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7
  • WordPress version: 6.3.1
  • First release: Sep 5, 2016
  • Latest release: Sep 5, 2016
  • Number of updates: 7
  • Update frequency: every 13.4 days
  • Top authors: ithemelandco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,058 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.15MB] [CPU: ▼2.04ms] Passed 4 tests

An overview of server-side resources used by Logo Showcase for VC Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.55 ▼2.99
Dashboard /wp-admin3.45 ▲0.1550.05 ▲4.60
Posts /wp-admin/edit.php3.56 ▲0.2148.45 ▲0.06
Add New Post /wp-admin/post-new.php6.03 ▲0.1489.12 ▼8.24
Media Library /wp-admin/upload.php3.37 ▲0.1437.77 ▲3.02

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Logo Showcase for VC Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲18013.60 ▼0.985.00 ▲3.1440.07 ▲0.91
Dashboard /wp-admin2,208 ▲195.77 ▲0.86100.50 ▼11.4439.26 ▼4.29
Posts /wp-admin/edit.php2,091 ▲22.00 ▼0.0538.67 ▼1.0334.22 ▼2.25
Add New Post /wp-admin/post-new.php1,530 ▲1623.15 ▲5.56605.26 ▼81.3349.60 ▼8.23
Media Library /wp-admin/upload.php1,390 ▲24.22 ▼0.0194.09 ▼20.1142.87 ▼4.91

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === logo-showcase-for-visual-composer === )
Please take inspiration from this readme.txt

logo-showcase-for-visual-composer/main.php 85% from 13 tests

The entry point to "Logo Showcase for VC Lite" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("logo-showcase-for-visual-composer.php" instead of "main.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,022 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS8498231,031
PHP37357968
SVG100414
PO File1163180358
JavaScript23730199
Markdown122028
Ruby16024

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.75
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon.png3.30KB0.31KB▼ 90.47%