84% perspective-3d-carousel

Code Review | Perspective 3D Carousel

WordPress plugin Perspective 3D Carousel scored84%from 54 tests.

About plugin

  • Plugin page: perspective-3d-ca...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 29, 2020
  • Latest release: Sep 5, 2023
  • Number of updates: 7
  • Update frequency: every 140.1 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,279 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.39ms] Passed 4 tests

A check of server-side resources used by Perspective 3D Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.90 ▼1.52
Dashboard /wp-admin3.38 ▲0.0851.69 ▼1.47
Posts /wp-admin/edit.php3.43 ▲0.0853.79 ▼1.12
Add New Post /wp-admin/post-new.php5.98 ▲0.1098.32 ▼9.43
Media Library /wp-admin/upload.php3.30 ▲0.0841.15 ▲5.39

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Perspective 3D Carousel
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.35 ▼0.431.71 ▲0.0942.47 ▼0.67
Dashboard /wp-admin2,212 ▲415.63 ▲0.0291.60 ▼52.9939.94 ▼4.61
Posts /wp-admin/edit.php2,128 ▲252.24 ▲0.2238.39 ▼3.3537.20 ▼1.14
Add New Post /wp-admin/post-new.php1,551 ▲1618.39 ▲0.26619.21 ▲10.9466.59 ▲1.43
Media Library /wp-admin/upload.php1,418 ▲214.19 ▲0.0196.30 ▼4.1342.07 ▼3.68

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • 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 shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/perspective-3d-carousel/perspective-3d-carousel.php:332

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: 3d rotating images, 3d carousel slider, perspective 3d slider, 3d carousel, 3d slider

perspective-3d-carousel/perspective-3d-carousel.php 92% from 13 tests

The principal PHP file in "Perspective 3D Carousel" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,339 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS25102,161
SVG100655
JavaScript28482326
PHP18055197

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin