77% wp-animate-slideshow

Code Review | WP Animate Slideshow by Cybercraft Technologies

WordPress plugin WP Animate Slideshow by Cybercraft Technologies scored77%from 54 tests.

About plugin

  • Plugin page: wp-animate-slideshow
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.4
  • WordPress version: 6.3.1
  • First release: Mar 24, 2016
  • Latest release: Mar 24, 2016
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: mithublue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /945 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.33ms] Passed 4 tests

Analyzing server-side resources used by WP Animate Slideshow by Cybercraft Technologies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.05 ▼4.08
Dashboard /wp-admin3.52 ▲0.2152.17 ▲6.72
Posts /wp-admin/edit.php3.60 ▲0.2452.46 ▲2.39
Add New Post /wp-admin/post-new.php6.05 ▲0.1692.54 ▼8.55
Media Library /wp-admin/upload.php3.38 ▲0.1534.91 ▲0.93
Add New /wp-admin/post-new.php?post_type=wpas_slider3.4446.89
All Slideshows /wp-admin/edit.php?post_type=wpas_slider3.4540.66
All Slides /wp-admin/edit.php?post_type=wpas_slide3.4539.32

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Animate Slideshow by Cybercraft Technologies
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,217 ▲48215.68 ▲1.1213.07 ▲11.0046.84 ▼1.24
Dashboard /wp-admin2,379 ▲1916.40 ▲1.52130.61 ▲24.9841.85 ▼1.00
Posts /wp-admin/edit.php2,280 ▲1913.29 ▲1.3254.57 ▲17.8532.79 ▼0.24
Add New Post /wp-admin/post-new.php1,556 ▲4223.21 ▲5.59569.41 ▼98.2133.72 ▼20.75
Media Library /wp-admin/upload.php1,418 ▲364.23 ▼0.0378.21 ▼21.4241.85 ▼2.49
Add New /wp-admin/post-new.php?post_type=wpas_slider1,8724.0384.3134.63
All Slideshows /wp-admin/edit.php?post_type=wpas_slider1,2523.3145.7627.95
All Slides /wp-admin/edit.php?post_type=wpas_slide1,2493.3046.4527.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-animate-slideshow/inc/admin/templates/template-slide.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-animate-slideshow/wp-animate-slideshow.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-animate-slideshow/inc/admin/slider-meta.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-animate-slideshow/inc/admin/slide-meta.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-animate-slideshow/inc/slider.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-animate-slideshow/inc/shortcode.php:5

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 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-animate-slideshow === )
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-animate-slideshow/wp-animate-slideshow.php 85% from 13 tests

"WP Animate Slideshow by Cybercraft Technologies" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.4" instead of "4.1")

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
Success! There were no dangerous files found in this plugin15,871 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS41,6144267,530
JavaScript31,3133,5386,562
XML760900
PHP6117116802
LESS11052
SVG21025

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.33
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods37
▷ Static methods513.51%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin