84% animate-slider

Code Review | Animate Slider

WordPress plugin Animate Slider scored84%from 54 tests.

About plugin

  • Plugin page: animate-slider
  • Plugin version: 0.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Aug 16, 2014
  • Number of updates: 33
  • Update frequency: every 8.8 days
  • Top authors: nackle2k10 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /18,745 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼5.05ms] Passed 4 tests

A check of server-side resources used by Animate Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2043.87 ▲1.66
Dashboard /wp-admin3.50 ▲0.1557.02 ▼15.11
Posts /wp-admin/edit.php3.61 ▲0.2655.21 ▲3.48
Add New Post /wp-admin/post-new.php6.08 ▲0.19100.32 ▼9.98
Media Library /wp-admin/upload.php3.42 ▲0.2042.76 ▲3.23
All Sliders /wp-admin/edit.php?post_type=slider3.4640.26
Add New /wp-admin/post-new.php?post_type=slider3.5652.84
Animate Slider /wp-admin/options-general.php?page=animate-slider3.3937.10

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

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

Browser metrics Passed 4 tests

Animate Slider: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.46 ▼0.899.59 ▲7.8639.70 ▼6.23
Dashboard /wp-admin2,222 ▲455.58 ▼0.0284.59 ▼15.0773.57 ▲27.74
Posts /wp-admin/edit.php2,136 ▲361.98 ▼0.0239.72 ▲3.4435.62 ▲1.18
Add New Post /wp-admin/post-new.php1,567 ▲3922.66 ▼0.39680.11 ▲34.9950.79 ▲0.56
Media Library /wp-admin/upload.php1,427 ▲244.12 ▼0.0699.10 ▼6.0270.05 ▲25.31
All Sliders /wp-admin/edit.php?post_type=slider1,0911.9832.2530.41
Add New /wp-admin/post-new.php?post_type=slider4,2478.05201.31119.76
Animate Slider /wp-admin/options-general.php?page=animate-slider9172.0022.6131.81

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/animate-slider/uninstall.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
4 plugin tags: animated, shortcode, slideshow, css3

animate-slider/animate-slider.php Passed 13 tests

This is the main PHP file of "Animate Slider" version 0.1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
A Featured Slider Plugin with CSS3 Transition.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,264 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP3261296816
CSS22312232
JavaScript44616216

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity89.00
▷ Minimum class complexity89.00
▷ Maximum class complexity89.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods40
▷ Static methods12.50%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/menuicon.png2.98KB0.29KB▼ 90.43%
screenshot-3.png16.17KB7.15KB▼ 55.76%
screenshot-1.png13.96KB6.16KB▼ 55.85%
screenshot-2.png24.80KB10.81KB▼ 56.42%