10% cinematic

Code Review | Cinematic 3D Parallax Touch Slider

WordPress plugin Cinematic 3D Parallax Touch Slider scored10%from 54 tests.

About plugin

  • Plugin page: cinematic
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: Nov 3, 2022
  • Number of updates: 10
  • Update frequency: every 127.7 days
  • Top authors: bukza (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,539 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.61ms] Passed 4 tests

Analyzing server-side resources used by Cinematic 3D Parallax Touch Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.09 ▼3.16
Dashboard /wp-admin3.39 ▲0.0848.20 ▼0.33
Posts /wp-admin/edit.php3.50 ▲0.1449.35 ▲0.89
Add New Post /wp-admin/post-new.php6.04 ▲0.1584.76 ▼15.82
Media Library /wp-admin/upload.php3.31 ▲0.0838.75 ▲5.72

Server storage [IO: ▲8.89MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Cinematic 3D Parallax Touch Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.60 ▼0.691.74 ▼0.1245.04 ▼2.23
Dashboard /wp-admin2,280 ▲925.85 ▲1.0095.19 ▼18.8140.18 ▼4.61
Posts /wp-admin/edit.php2,166 ▲802.04 ▲0.0333.93 ▼1.8734.83 ▼0.95
Add New Post /wp-admin/post-new.php1,555 ▲4118.36 ▲0.85612.66 ▼9.2254.85 ▲0.96
Media Library /wp-admin/upload.php1,465 ▲804.19 ▲0.02102.48 ▲3.9641.95 ▼0.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/cinematic/admin/partials/cinematic-admin-display.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

cinematic/cinematic.php Passed 13 tests

Analyzing the main PHP file in "Cinematic 3D Parallax Touch Slider" version 1.0.0
36 characters long description:
Cinematic - 3D Parallax Touch Slider

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,093 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript616541,653
CSS212455800
PHP12135543640

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods31
▷ Static methods722.58%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 8.26MB with 5.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/slide1/2.png1,688.57KB385.29KB▼ 77.18%
admin/images/icons/favicon-96x96.png2.26KB1.47KB▼ 34.99%
admin/images/slide2/2.png1,858.24KB433.18KB▼ 76.69%
admin/images/slide3/3.png308.02KB42.98KB▼ 86.05%
admin/images/slide3/4.png526.67KB85.69KB▼ 83.73%