89% clean-slider

Code Review | Clean Slider for Wordpress

WordPress plugin Clean Slider for Wordpress scored89%from 54 tests.

About plugin

  • Plugin page: clean-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2015
  • Latest release: Aug 20, 2015
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: faxogen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,060 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.44ms] Passed 4 tests

A check of server-side resources used by Clean Slider for Wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.72 ▲6.43
Dashboard /wp-admin3.32 ▼0.0342.43 ▼14.45
Posts /wp-admin/edit.php3.37 ▲0.0143.83 ▲0.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.04 ▼16.44
Media Library /wp-admin/upload.php3.24 ▲0.0132.43 ▲0.57

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: 2 new tables, 6 new options
New tables
wp_clean_slides_vava
wp_clean_images_vava
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Clean Slider for Wordpress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲12113.81 ▼0.558.09 ▲6.3136.56 ▼4.07
Dashboard /wp-admin2,207 ▲265.62 ▼0.0481.51 ▼22.1935.67 ▼4.64
Posts /wp-admin/edit.php2,112 ▲151.97 ▼0.0139.86 ▲0.3237.04 ▲1.77
Add New Post /wp-admin/post-new.php1,538 ▲1223.12 ▼0.16662.12 ▲9.3154.23 ▲0.90
Media Library /wp-admin/upload.php1,412 ▲154.21 ▲0.0496.92 ▼0.3841.59 ▼5.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Slides listing), #2 (Editing slider defaults), #3 (Viewing slider images), #4 (Adding new image to slider), #5 (Editing image)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === clean-slider === )
You can take inspiration from this readme.txt

clean-slider/clean_slider_vahid.php 92% from 13 tests

The principal PHP file in "Clean Slider for Wordpress" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("clean-slider.php" instead of "clean_slider_vahid.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,293 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP63831122,241
SVG1011,181
CSS14810657
JavaScript264100214

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity159.00
▷ Minimum class complexity159.00
▷ Maximum class complexity159.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods44
▷ Static methods12.27%
▷ Public methods715.91%
▷ Protected methods3681.82%
▷ Private methods12.27%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png11.42KB10.88KB▼ 4.80%
assets/icon-128x128.png5.56KB5.31KB▼ 4.53%