83% ultra-camera-slider

Code Review | Ultra Camera Slider

WordPress plugin Ultra Camera Slider scored83%from 54 tests.

About plugin

  • Plugin page: ultra-camera-slider
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 18, 2014
  • Latest release: Dec 25, 2014
  • Number of updates: 14
  • Update frequency: every 7.0 days
  • Top authors: sozan45 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,487 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.95ms] Passed 4 tests

Analyzing server-side resources used by Ultra Camera Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.39 ▼4.06
Dashboard /wp-admin3.34 ▼0.0152.42 ▼10.39
Posts /wp-admin/edit.php3.40 ▲0.0349.37 ▼0.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0395.63 ▼16.76
Media Library /wp-admin/upload.php3.27 ▲0.0337.85 ▲0.58
All Slides /wp-admin/edit.php?post_type=ultra_slider3.3138.18
Add New Slide /wp-admin/post-new.php?post_type=ultra_slider3.3948.42

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Ultra Camera Slider: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,049 ▲27813.89 ▼0.2613.75 ▲11.8841.44 ▼3.08
Dashboard /wp-admin2,223 ▲435.50 ▼0.1697.20 ▲6.8078.21 ▲32.88
Posts /wp-admin/edit.php2,131 ▲311.96 ▼0.0235.05 ▼4.7233.79 ▼2.21
Add New Post /wp-admin/post-new.php1,551 ▲2323.20 ▲0.06697.39 ▲11.3954.83 ▼0.88
Media Library /wp-admin/upload.php1,425 ▲254.18 ▼0.02101.84 ▼1.9969.98 ▲21.68
All Slides /wp-admin/edit.php?post_type=ultra_slider1,0981.9333.3830.19
Add New Slide /wp-admin/post-new.php?post_type=ultra_slider2,1887.65169.4099.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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× 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/ultra-camera-slider/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

ultra-camera-slider/index.php 85% from 13 tests

"Ultra Camera Slider" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ultra-camera-slider.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 227 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
There were no executable files found in this plugin1,256 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS10421,026
JavaScript3382134
PHP1381495
XML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions5
▷ Named functions5100.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
12 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/patterns/overlay5.png0.90KB0.10KB▼ 89.18%
images/patterns/overlay7.png0.09KB0.09KB▼ 4.12%
images/patterns/overlay1.png0.92KB0.10KB▼ 89.11%
images/patterns/overlay2.png0.91KB0.10KB▼ 89.30%
images/patterns/overlay4.png0.90KB0.10KB▼ 89.39%