83% advanced-logo-showcase

Code Review | iThemeland Logo Showcase for wp

WordPress plugin iThemeland Logo Showcase for wp scored83%from 54 tests.

About plugin

  • Plugin page: advanced-logo-sho...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7
  • WordPress version: 6.3.1
  • First release: Aug 4, 2016
  • Latest release: Aug 4, 2016
  • Number of updates: 7
  • Update frequency: every 18.0 days
  • Top authors: ithemelandco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,174 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.07ms] Passed 4 tests

Server-side resources used by iThemeland Logo Showcase for wp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.54 ▲0.01
Dashboard /wp-admin3.48 ▲0.1759.88 ▲3.89
Posts /wp-admin/edit.php3.59 ▲0.2357.08 ▲5.80
Add New Post /wp-admin/post-new.php6.05 ▲0.1696.27 ▼5.21
Media Library /wp-admin/upload.php3.37 ▲0.1438.70 ▲1.03
All Logos /wp-admin/edit.php?post_type=itls_cp_logo3.4442.49
Add Logo /wp-admin/post-new.php?post_type=itls_cp_logo3.5054.85
Categories /wp-admin/edit-tags.php?taxonomy=itls_logo_category&post_type=itls_cp_logo3.3940.74
Shortcode Generator /wp-admin/edit.php?post_type=itls_cp_logo&page=logo_showcase_shortcode3.6041.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for iThemeland Logo Showcase for wp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,139 ▲37815.39 ▲1.185.52 ▲3.7641.64 ▲1.16
Dashboard /wp-admin2,444 ▲2386.78 ▲0.89128.97 ▲26.1538.27 ▼1.81
Posts /wp-admin/edit.php2,349 ▲2493.62 ▲1.5759.71 ▲17.9134.60 ▲0.28
Add New Post /wp-admin/post-new.php1,610 ▲5518.69 ▲0.39631.49 ▼21.1933.73 ▼26.10
Media Library /wp-admin/upload.php1,483 ▲834.40 ▲0.1887.30 ▼21.7442.58 ▼3.38
All Logos /wp-admin/edit.php?post_type=itls_cp_logo1,3343.6446.4226.73
Add Logo /wp-admin/post-new.php?post_type=itls_cp_logo2,6227.47159.8375.31
Categories /wp-admin/edit-tags.php?taxonomy=itls_logo_category&post_type=itls_cp_logo1,5253.4642.7031.84
Shortcode Generator /wp-admin/edit.php?post_type=itls_cp_logo&page=logo_showcase_shortcode1,9933.8554.2529.98

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=itls_cp_logo
    • > Javascript (severe) in unknown
    /wp-admin/edit.php?post_type=itls_cp_logo 18:4 Uncaught ReferenceError: jQuery is not defined
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=itls_cp_logo&page=logo_showcase_shortcode
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-logo-showcase/assets/js/back-end/custom-js.js?ver=6.3.1:190:44)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=itls_cp_logo&page=logo_showcase_shortcode
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
    • > GET request to /wp-admin/post-new.php?post_type=itls_cp_logo
    • > Javascript (severe) in unknown
    /wp-admin/post-new.php?post_type=itls_cp_logo 18:4 Uncaught ReferenceError: jQuery is not defined
    • > GET request to /wp-admin/edit-tags.php?taxonomy=itls_logo_category&post_type=itls_cp_logo
    • > Javascript (severe) in unknown
    /wp-admin/edit-tags.php?taxonomy=itls_logo_category&post_type=itls_cp_logo 18:4 Uncaught ReferenceError: jQuery is not defined
    • > GET request to /wp-admin/edit.php?post_type=itls_cp_logo&page=logo_showcase_shortcode
    • > Javascript (severe) in unknown
    /wp-admin/edit.php?post_type=itls_cp_logo&page=logo_showcase_shortcode 18:4 Uncaught ReferenceError: jQuery is not defined

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (21 tag instead of maximum 10)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === advanced-logo-showcase === )
You can take inspiration from this readme.txt

advanced-logo-showcase/main.php 85% from 13 tests

This is the main PHP file of "iThemeland Logo Showcase for wp" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-logo-showcase.php" instead of "main.php")

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
No dangerous file extensions were detected5,329 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP145711371,805
CSS9529551,536
PO File15609201,164
SVG100414
JavaScript58959358
Markdown122028
Ruby16024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/back-end/chosen/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
assets/css/back-end/chosen/chosen-sprite.png0.63KB0.88KB0.00%
assets/images/admin_overlay_bg.png0.19KB0.09KB▼ 50.00%