87% wp-3d-motion-slider

Code Review | WP 3D MOTION SLIDER

WordPress plugin WP 3D MOTION SLIDER scored 87% from 54 tests.

About plugin

  • Plugin page: wp-3d-motion-slider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 5.8.1
  • First release: Mar 23, 2015
  • Latest release: May 27, 2015
  • Number of updates: 9
  • Update frequency: every 93.7 days
  • Top authors: Omikant (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,859 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by WP 3D MOTION SLIDER
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1738.07 ▲12.61
Dashboard /wp-admin3.11 ▲0.0553.35 ▲4.99
Posts /wp-admin/edit.php3.16 ▲0.0551.67 ▼6.95
Add New Post /wp-admin/post-new.php5.47 ▲0.0398.25 ▼574.48
Media Library /wp-admin/upload.php3.05 ▲0.0533.08 ▼5.36
Add New /wp-admin/post-new.php?post_type=wp3dm_images3.1152.21
All 3D Images /wp-admin/edit.php?post_type=wp3dm_images3.0947.21

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP 3D MOTION SLIDER: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,775 ▲16916.36 ▲0.7216.97 ▲5.6449.60 ▼5.89
Dashboard /wp-admin3,010 ▲765.91 ▼0.12136.06 ▼19.33109.43 ▼11.17
Posts /wp-admin/edit.php2,776 ▲372.72 ▲0.0178.67 ▼29.3594.79 ▼44.42
Add New Post /wp-admin/post-new.php1,709 ▲2618.71 ▲0.56421.78 ▲14.91108.95 ▼4.51
Media Library /wp-admin/upload.php1,847 ▲405.02 ▼0.02185.47 ▲22.01120.81 ▼2.74
Add New /wp-admin/post-new.php?post_type=wp3dm_images2,2034.51110.9886.28
Slider Settings /wp-admin/setting.php260.900.1013.17
All 3D Images /wp-admin/edit.php?post_type=wp3dm_images1,4432.6367.5681.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-3d-motion-slider/wpsliceslider.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-3d-motion-slider/setting.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/setting.php
    • > Network (severe)
    wp-admin/setting.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Admin list interface showing Slider images and titles.), #2 (Example output.(see documentation).)
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
The official readme.txt might help

wp-3d-motion-slider/wpsliceslider.php 92% from 13 tests

"WP 3D MOTION SLIDER" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-3d-motion-slider.php" instead of "wpsliceslider.php")

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
Success! There were no dangerous files found in this plugin917 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript325999522
PHP25935219
CSS2281176

PHP code Passed 2 tests

A short review 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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 1.03MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png186.48KB60.87KB▼ 67.36%
images/shadow.png30.08KB15.52KB▼ 48.41%
screenshot-2.png831.08KB296.15KB▼ 64.37%
images/nav.png1.69KB0.45KB▼ 73.12%
images/options.png1.82KB0.69KB▼ 61.99%