84% logos-carousel-slider

Code Review | Logos Carousel Slider

WordPress plugin Logos Carousel Slider scored84%from 54 tests.

About plugin

  • Plugin page: logos-carousel-sl...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2019
  • Latest release: Apr 8, 2019
  • Number of updates: 3
  • Update frequency: every 111.7 days
  • Top authors: kartikdholariya (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /685 total downloads

Benchmarks

Plugin footprint 83% from 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.04MB] [CPU: ▼7.38ms] Passed 4 tests

An overview of server-side resources used by Logos Carousel Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.47 ▼3.44
Dashboard /wp-admin3.35 ▲0.0143.40 ▼18.63
Posts /wp-admin/edit.php3.40 ▲0.0545.95 ▲0.03
Add New Post /wp-admin/post-new.php5.93 ▲0.0583.52 ▼7.49
Media Library /wp-admin/upload.php3.27 ▲0.0435.84 ▲0.46
Shortcode /wp-admin/edit.php?post_type=logocrowsalslider&page=3.2432.89
All Logo /wp-admin/edit.php?post_type=logocrowsalslider3.3235.77
Categories /wp-admin/edit-tags.php?taxonomy=logoslidercat&post_type=logocrowsalslider3.2732.71
Add New Logo /wp-admin/post-new.php?post_type=logocrowsalslider3.3749.10

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Logos Carousel Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲12313.18 ▼1.373.74 ▲2.0540.70 ▼2.72
Dashboard /wp-admin2,238 ▲505.82 ▲0.94105.16 ▼16.1040.16 ▼6.15
Posts /wp-admin/edit.php2,124 ▲352.04 ▲0.0638.55 ▲1.2934.60 ▼0.01
Add New Post /wp-admin/post-new.php1,562 ▲3423.51 ▲5.32611.74 ▼12.6462.17 ▲11.67
Media Library /wp-admin/upload.php1,426 ▲414.22 ▲0.0295.41 ▼4.4041.08 ▼3.54
Shortcode /wp-admin/edit.php?post_type=logocrowsalslider&page=7922.1825.0825.23
All Logo /wp-admin/edit.php?post_type=logocrowsalslider1,1272.0031.0730.27
Categories /wp-admin/edit-tags.php?taxonomy=logoslidercat&post_type=logocrowsalslider1,2942.1426.3228.21
Add New Logo /wp-admin/post-new.php?post_type=logocrowsalslider2,0893.7567.8932.91

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logos-carousel-slider/logo-sllider.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: comments, spam

logos-carousel-slider/logo-sllider.php 85% from 13 tests

The principal PHP file in "Logos Carousel Slider" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("logos-carousel-slider.php" instead of "logo-sllider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,237 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2828452,041
CSS1160108
PHP1171288

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.PNG69.71KB30.79KB▼ 55.83%