93% advanced-logo-showcase

Code Review | iThemeland Logo Showcase for wp

WordPress plugin iThemeland Logo Showcase for wp scored 93% 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: 5.9.2
  • 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

60+ active / 1,919 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼292.87ms] Passed 4 tests

Analyzing server-side resources used by iThemeland Logo Showcase for wp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1861.82 ▲9.53
Dashboard /wp-admin3.60 ▲0.1837.48 ▲0.75
Posts /wp-admin/edit.php3.82 ▲0.1741.47 ▲5.86
Add New Post /wp-admin/post-new.php7.03 ▲0.0692.72 ▼1,181.98
Media Library /wp-admin/upload.php3.45 ▲0.1529.24 ▲3.91
Categories /wp-admin/edit-tags.php?taxonomy=itls_logo_category&post_type=itls_cp_logo3.4829.37
Shortcode Generator /wp-admin/edit.php?post_type=itls_cp_logo&page=logo_showcase_shortcode3.6829.26
All Logos /wp-admin/edit.php?post_type=itls_cp_logo3.5929.62
Add Logo /wp-admin/post-new.php?post_type=itls_cp_logo3.8050.02

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

iThemeland Logo Showcase for wp: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,222 ▲47418.21 ▲2.5510.33 ▲4.182.07 ▼0.23
Dashboard /wp-admin3,185 ▲3248.66 ▲2.45150.68 ▲11.59153.80 ▼12.84
Posts /wp-admin/edit.php3,021 ▲3335.07 ▲1.8380.97 ▲14.03136.21 ▼5.15
Add New Post /wp-admin/post-new.php1,750 ▼820.18 ▼1.88393.14 ▼104.80155.49 ▲1.86
Media Library /wp-admin/upload.php1,805 ▲1075.91 ▲0.38113.19 ▼31.93183.75 ▼7.48
Categories /wp-admin/edit-tags.php?taxonomy=itls_logo_category&post_type=itls_cp_logo1,9535.3776.10106.57
Shortcode Generator /wp-admin/edit.php?post_type=itls_cp_logo&page=logo_showcase_shortcode2,5685.4584.90129.49
All Logos /wp-admin/edit.php?post_type=itls_cp_logo1,7235.7079.96111.08
Add Logo /wp-admin/post-new.php?post_type=itls_cp_logo3,42610.16182.22197.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > 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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=itls_cp_logo
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2 1:31592 "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=5.9.2:190:44)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2:2:30340)" undefined
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=itls_cp_logo
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2 1:31702 Uncaught TypeError: jQuery(...).live is not a function
    • > 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
    • > 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
    • > 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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === advanced-logo-showcase === )
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
You can take inspiration from this readme.txt

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

The principal PHP file in "iThemeland Logo Showcase for wp" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: The principal plugin file should be the same 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin5,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

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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%