84% moving-image-slider

Code Review | Moving image slider

WordPress plugin Moving image slider scored84%from 54 tests.

About plugin

  • Plugin page: moving-image-slider
  • Plugin version: 1.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2021
  • Latest release: Dec 1, 2022
  • Number of updates: 6
  • Update frequency: every 90.8 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /653 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.10MB] [CPU: ▲1.31ms] Passed 4 tests

Server-side resources used by Moving image slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.98 ▼6.75
Dashboard /wp-admin3.41 ▲0.1052.66 ▲6.42
Posts /wp-admin/edit.php3.52 ▲0.1747.03 ▲1.61
Add New Post /wp-admin/post-new.php5.99 ▲0.1098.89 ▲6.13
Media Library /wp-admin/upload.php3.33 ▲0.1037.48 ▲4.24
Moving image slider /wp-admin/options-general.php?page=moving-image-slider3.3432.63

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 8 new options
New tables
wp_moving_image_slider
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_moving-image-slider
moving-image-slider
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Moving image slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.57 ▼0.795.47 ▲3.8442.72 ▲0.87
Dashboard /wp-admin2,213 ▲224.88 ▲0.01104.13 ▼2.4043.32 ▲0.69
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0236.67 ▲2.2235.14 ▼1.30
Add New Post /wp-admin/post-new.php1,536 ▲2223.33 ▲5.82682.91 ▼32.6250.97 ▼14.93
Media Library /wp-admin/upload.php1,395 ▲44.15 ▼0.0495.77 ▼7.1542.07 ▼2.06
Moving image slider /wp-admin/options-general.php?page=moving-image-slider1,0282.0223.5430.39

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_moving-image-slider
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/moving-image-slider/pages/image-management-add.php
    • > /wp-content/plugins/moving-image-slider/pages/image-management-show.php
    • > /wp-content/plugins/moving-image-slider/moving-image-slider.php
    • > /wp-content/plugins/moving-image-slider/pages/image-management-edit.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
4 plugin tags: widget, plugin, image, moving

moving-image-slider/moving-image-slider.php 92% from 13 tests

The main PHP file in "Moving image slider" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 176 characters long)

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
Good job! No executable or dangerous file extensions detected1,675 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP716121971
JavaScript210727525
PO File15275118
CSS111761

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity16.75
▷ Minimum class complexity13.00
▷ Maximum class complexity21.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods2076.92%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin