89% ztransitions-compatibility

Code Review | zTransitions Image Video Carousel Gallery

WordPress plugin zTransitions Image Video Carousel Gallery scored89%from 54 tests.

About plugin

  • Plugin page: ztransitions-comp...
  • Plugin version: 1.0.0
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Oct 28, 2019
  • Latest release: Oct 28, 2019
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: ztransitions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.84ms] Passed 4 tests

Analyzing server-side resources used by zTransitions Image Video Carousel Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.08 ▼1.40
Dashboard /wp-admin3.32 ▼0.0346.55 ▼12.83
Posts /wp-admin/edit.php3.37 ▲0.0148.15 ▲4.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.97 ▼13.86
Media Library /wp-admin/upload.php3.24 ▲0.0136.65 ▲0.75

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by zTransitions Image Video Carousel Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.10 ▼0.251.68 ▲0.0844.35 ▲3.28
Dashboard /wp-admin2,198 ▲215.57 ▲0.0189.68 ▲3.2437.69 ▼1.17
Posts /wp-admin/edit.php2,100 ▲182.00 ▲0.0039.10 ▲2.5235.59 ▼2.38
Add New Post /wp-admin/post-new.php1,531 ▼323.29 ▲5.25645.12 ▲12.2246.45 ▼24.75
Media Library /wp-admin/upload.php1,397 ▼34.17 ▲0.03106.97 ▼8.7546.01 ▼3.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: transitions, gallery, streaming video, carousel, ztransitions...

ztransitions-compatibility/zTransitions.php 77% from 13 tests

The main PHP file in "zTransitions Image Video Carousel Gallery" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ztransitions-compatibility.php" instead of "zTransitions.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 228 characters long)

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 plugin33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP185033

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin