84% eazy-css-slider

Code Review | Eazy CSS Slider

WordPress plugin Eazy CSS Slider scored84%from 54 tests.

About plugin

  • Plugin page: eazy-css-slider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.1
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Jan 2, 2018
  • Number of updates: 10
  • Update frequency: every 92.9 days
  • Top authors: r0bsc0tt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.56ms] Passed 4 tests

Server-side resources used by Eazy CSS Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.72 ▼5.32
Dashboard /wp-admin3.38 ▲0.0754.32 ▲3.28
Posts /wp-admin/edit.php3.43 ▲0.0750.09 ▼0.26
Add New Post /wp-admin/post-new.php5.96 ▲0.07107.96 ▲17.80
Media Library /wp-admin/upload.php3.30 ▲0.0739.28 ▲4.54
Add New Slide /wp-admin/post-new.php?post_type=eazy_slide3.4252.17
All Slides /wp-admin/edit.php?post_type=eazy_slide3.3439.38
Sliders /wp-admin/edit-tags.php?taxonomy=slider&post_type=eazy_slide3.2934.45

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Eazy CSS Slider: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.23 ▼1.531.59 ▼0.1940.19 ▼7.71
Dashboard /wp-admin2,243 ▲665.83 ▲0.96100.32 ▼2.9771.79 ▲24.91
Posts /wp-admin/edit.php2,129 ▲402.01 ▲0.0038.85 ▼1.9734.14 ▼0.94
Add New Post /wp-admin/post-new.php1,547 ▲2822.98 ▼0.48710.01 ▲49.4045.56 ▼5.01
Media Library /wp-admin/upload.php1,419 ▲284.18 ▼0.1195.47 ▼1.6843.20 ▼2.73
Add New Slide /wp-admin/post-new.php?post_type=eazy_slide2,2687.56172.00123.55
All Slides /wp-admin/edit.php?post_type=eazy_slide1,1041.9435.8134.03
Sliders /wp-admin/edit-tags.php?taxonomy=slider&post_type=eazy_slide1,2962.1425.1832.64

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/eazy-css-slider/eazy_css_slider_shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazy-css-slider/eazy_css_slider.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: slider, css slider, gallery, image slider, image carousel

eazy-css-slider/eazy_css_slider.php 92% from 13 tests

The primary PHP file in "Eazy CSS Slider" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eazy-css-slider.php" instead of "eazy_css_slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected244 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23325149
CSS19795

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/slidericon.png0.44KB0.31KB▼ 30.46%