78% cb-logo-slider

Code Review | Logo Slider

WordPress plugin Logo Slider scored78%from 54 tests.

About plugin

  • Plugin page: cb-logo-slider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Jan 9, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: cynob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /655 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.93ms] Passed 4 tests

Server-side resources used by Logo Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.02 ▲3.84
Dashboard /wp-admin3.34 ▲0.0449.19 ▼3.15
Posts /wp-admin/edit.php3.39 ▲0.0350.99 ▼6.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.34 ▼10.33
Media Library /wp-admin/upload.php3.26 ▲0.0337.12 ▲0.28
Logo Slider Setting /wp-admin/edit.php?post_type=cbls_logo_slider&page=logo-page-setting3.2932.39
Add New Logo /wp-admin/post-new.php?post_type=cbls_logo_slider3.3248.27
All Logos /wp-admin/edit.php?post_type=cbls_logo_slider3.3038.83
About Us /wp-admin/edit.php?post_type=cbls_logo_slider&page=about-us3.2532.97

Server storage [IO: ▲0.27MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Logo Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲13014.20 ▼0.183.38 ▲1.7138.98 ▼4.43
Dashboard /wp-admin2,248 ▲715.65 ▼0.0391.34 ▼4.3538.04 ▼6.24
Posts /wp-admin/edit.php2,160 ▲572.01 ▲0.0234.74 ▼6.6933.34 ▼5.70
Add New Post /wp-admin/post-new.php1,586 ▲6023.25 ▲5.45687.96 ▲47.6361.46 ▲3.23
Media Library /wp-admin/upload.php1,453 ▲534.23 ▼0.04107.04 ▼0.0244.57 ▼3.57
Logo Slider Setting /wp-admin/edit.php?post_type=cbls_logo_slider&page=logo-page-setting9932.0222.6332.56
Add New Logo /wp-admin/post-new.php?post_type=cbls_logo_slider1,7033.6160.3332.58
All Logos /wp-admin/edit.php?post_type=cbls_logo_slider1,1311.9430.7930.44
About Us /wp-admin/edit.php?post_type=cbls_logo_slider&page=about-us8572.0524.3230.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/edit.php?post_type=cbls_logo_slider&page=logo-page-setting
    • > Notice in wp-content/plugins/cb-logo-slider/pages/logo-page-setting.php+22
    Undefined index: add_opt_submit
    • > GET request to /wp-admin/edit.php?post_type=cbls_logo_slider&page=logo-page-setting
    • > Notice in wp-content/plugins/cb-logo-slider/pages/logo-page-setting.php+58
    Undefined variable: message

SRP 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cb-logo-slider/pages/about-us.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Back end logo slider setting), #2 (Back end add new logo), #3 (Front end slider look)
Please take inspiration from this readme.txt

cb-logo-slider/cb-logo-slider.php Passed 13 tests

The entry point to "Logo Slider" version 1.0.0 is a PHP file that has certain tags in its header comment area
69 characters long description:
This plugin will add a responsive logo slider in your wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,991 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1207171,288
CSS34832368
PHP36444335

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png43.79KB20.32KB▼ 53.60%
screenshot-3.png112.96KB31.18KB▼ 72.40%
screenshot-2.png37.77KB17.93KB▼ 52.53%