78% the-logo-slider

Code Review | The Logo Slider

WordPress plugin The Logo Slider scored78%from 54 tests.

About plugin

  • Plugin page: the-logo-slider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Aug 20, 2016
  • Number of updates: 11
  • Update frequency: every 34.2 days
  • Top authors: NetAttingo Technologies (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /9,735 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
Installer ran successfully

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

An overview of server-side resources used by The Logo Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.37 ▲0.90
Dashboard /wp-admin3.34 ▲0.0449.79 ▼4.50
Posts /wp-admin/edit.php3.39 ▲0.0350.32 ▼1.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0498.59 ▲4.83
Media Library /wp-admin/upload.php3.26 ▲0.0337.61 ▲2.27
All Logos /wp-admin/edit.php?post_type=the_logo_slider3.3038.89
About Us /wp-admin/edit.php?post_type=the_logo_slider&page=about-us3.2532.61
Add New Logo /wp-admin/post-new.php?post_type=the_logo_slider3.3249.60
Logo Slider Setting /wp-admin/edit.php?post_type=the_logo_slider&page=logo-page-setting3.2936.02

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for The Logo Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11213.21 ▼1.093.44 ▲1.4242.74 ▼4.68
Dashboard /wp-admin2,255 ▲705.85 ▼0.0397.92 ▼16.9544.23 ▲2.26
Posts /wp-admin/edit.php2,144 ▲522.00 ▼0.0539.74 ▼1.5335.32 ▼0.15
Add New Post /wp-admin/post-new.php1,568 ▲4823.34 ▲0.18618.73 ▼51.2550.89 ▼0.70
Media Library /wp-admin/upload.php1,437 ▲494.23 ▲0.0399.47 ▼4.3643.74 ▼0.97
All Logos /wp-admin/edit.php?post_type=the_logo_slider1,1161.9631.6729.67
About Us /wp-admin/edit.php?post_type=the_logo_slider&page=about-us8422.0625.5131.55
Add New Logo /wp-admin/post-new.php?post_type=the_logo_slider1,6873.6362.2635.20
Logo Slider Setting /wp-admin/edit.php?post_type=the_logo_slider&page=logo-page-setting9732.1825.4933.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit.php?post_type=the_logo_slider&page=logo-page-setting
    • > Notice in wp-content/plugins/the-logo-slider/pages/logo-page-setting.php+21
    Undefined index: add_opt_submit
    • > GET request to /wp-admin/edit.php?post_type=the_logo_slider&page=logo-page-setting
    • > Notice in wp-content/plugins/the-logo-slider/pages/logo-page-setting.php+60
    Undefined variable: message

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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/the-logo-slider/pages/about-us.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/the-logo-slider/the-logo-slider.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/the-logo-slider/pages/logo-page-setting.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • 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

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

The primary PHP file in "The Logo Slider" version 1.0.0 is used by WordPress to initiate all plugin functionality
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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,992 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1207171,288
CSS35232368
PHP38144336

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Constants4
▷ Global constants4100.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-3.png112.96KB31.18KB▼ 72.40%
screenshot-1.png43.79KB20.32KB▼ 53.60%
screenshot-2.png37.77KB17.93KB▼ 52.53%