84% horizontal-motion-gallery

Code Review | Horizontal motion gallery

WordPress plugin Horizontal motion gallery scored84%from 54 tests.

About plugin

  • Plugin page: horizontal-motion...
  • Plugin version: 9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 68
  • Update frequency: every 70.1 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /23,813 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.26ms] Passed 4 tests

A check of server-side resources used by Horizontal motion gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.35 ▼3.30
Dashboard /wp-admin3.35 ▲0.0547.31 ▼5.58
Posts /wp-admin/edit.php3.40 ▲0.0549.46 ▲3.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.53 ▼11.05
Media Library /wp-admin/upload.php3.27 ▲0.0534.49 ▼1.10
Motion Gallery /wp-admin/options-general.php?page=horizontal-motion-gallery3.2431.16

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 11 new options
New WordPress options

Browser metrics Passed 4 tests

Horizontal motion gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.404.41 ▲2.3138.95 ▼4.01
Dashboard /wp-admin2,210 ▲225.90 ▼0.0195.45 ▼9.6740.68 ▼2.96
Posts /wp-admin/edit.php2,096 ▲72.04 ▼0.0039.69 ▼9.1434.89 ▼0.76
Add New Post /wp-admin/post-new.php1,550 ▲918.45 ▲0.26618.47 ▼31.5049.63 ▲1.36
Media Library /wp-admin/upload.php1,389 ▲44.20 ▼0.0695.71 ▼11.0943.10 ▼1.13
Motion Gallery /wp-admin/options-general.php?page=horizontal-motion-gallery8592.0627.6225.57

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/horizontal-motion-gallery/horizontal-motion-gallery.php:132

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: horizontal, slideshow, motion, gallery

horizontal-motion-gallery/horizontal-motion-gallery.php 92% from 13 tests

The main file in "Horizontal motion gallery" v. 9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 182 characters long)

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
Good job! No executable or dangerous file extensions detected491 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File23846115

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin