78% best-clients-logo-slider

Code Review | Best Logo Slider

WordPress plugin Best Logo Slider scored78%from 54 tests.

About plugin

  • Plugin page: best-clients-logo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7
  • WordPress version: 6.3.1
  • First release: Jan 29, 2017
  • Latest release: Mar 30, 2017
  • Number of updates: 2
  • Update frequency: every 28.5 days
  • Top authors: wpdivine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.40MB] [CPU: ▲2.13ms] Passed 4 tests

This is a short check of server-side resources used by Best Logo Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2749.43 ▲1.73
Dashboard /wp-admin3.80 ▲0.5049.45 ▼2.32
Posts /wp-admin/edit.php3.82 ▲0.4653.66 ▲8.30
Add New Post /wp-admin/post-new.php6.33 ▲0.44101.90 ▲3.19
Media Library /wp-admin/upload.php3.66 ▲0.4338.18 ▲5.90
Clients /wp-admin/edit.php?post_type=client3.7737.39
Add New Client /wp-admin/post-new.php?post_type=client3.9847.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 364 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Best Logo Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21113.71 ▼0.589.02 ▲6.8642.77 ▼1.44
Dashboard /wp-admin2,244 ▲534.95 ▲0.12112.81 ▲3.7643.30 ▼0.94
Posts /wp-admin/edit.php2,127 ▲412.11 ▲0.1140.82 ▲3.0933.79 ▼3.59
Add New Post /wp-admin/post-new.php1,548 ▲2823.39 ▲0.32619.23 ▼69.5458.75 ▲5.59
Media Library /wp-admin/upload.php1,426 ▲414.26 ▲0.0297.85 ▼2.8840.52 ▼2.37
Clients /wp-admin/edit.php?post_type=client1,1001.9940.1129.52
Add New Client /wp-admin/post-new.php?post_type=client1,2671.536.4030.11

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=client
    • > Compile error in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/types/CMB2_Type_File.php+15
    Declaration of CMB2_Type_File::render() must be compatible with CMB2_Type_Text::render($args = Array)

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 40× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/types/CMB2_Type_Taxonomy_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/init.php:120
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-clients-logo-slider/inc/meta-box/lib/includes/helper-functions.php:120

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 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (This screenshot shows example of Carousel logo slider screenshot-1.png), #2 (This is the second screenshot of grid logo.)
The official readme.txt is a good inspiration

best-clients-logo-slider/best-logo-slider.php 92% from 13 tests

The principal PHP file in "Best Logo Slider" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("best-clients-logo-slider.php" instead of "best-logo-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected46,099 lines of code in 216 files:
LanguageFilesBlank linesComment linesLines of code
PO File12013,78217,88231,544
PHP551,7554,6725,957
CSS161,0371,0744,791
JavaScript84402602,199
Sass13238251,154
Markdown41620454

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.54
▷ Minimum class complexity1.00
▷ Maximum class complexity141.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes63
▷ Abstract classes812.70%
▷ Concrete classes5587.30%
▷ Final classes00.00%
Methods432
▷ Static methods6715.51%
▷ Public methods36183.56%
▷ Protected methods6815.74%
▷ Private methods30.69%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/meta-box/lib/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
inc/meta-box/lib/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
inc/meta-box/lib/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
inc/meta-box/lib/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
inc/meta-box/lib/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%