WordPress plugin Zenith Slider scored 77% from 54 tests.

About plugin

  • Plugin page: zenith-slider-res...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2016
  • Latest release: Jun 15, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: zutigrm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.53MB] [CPU: ▲0.43ms] Passed 4 tests

This is a short check of server-side resources used by Zenith Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5348.70 ▲5.53
Dashboard /wp-admin3.88 ▲0.5753.74 ▼1.42
Posts /wp-admin/edit.php3.90 ▲0.5550.47 ▲2.28
Add New Post /wp-admin/post-new.php6.41 ▲0.5289.60 ▼2.61
Media Library /wp-admin/upload.php3.73 ▲0.5143.54 ▲3.48
All Sliders /wp-admin/edit.php?post_type=zenith_slider3.8440.69
Add Slider /wp-admin/post-new.php?post_type=zenith_slider4.1955.30

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

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

Browser metrics Passed 4 tests

Zenith Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12813.51 ▼0.843.44 ▲1.7240.91 ▼1.75
Dashboard /wp-admin2,262 ▲735.07 ▲0.19110.25 ▲2.3139.61 ▼0.33
Posts /wp-admin/edit.php2,141 ▲522.33 ▲0.2939.41 ▲2.5931.51 ▼0.05
Add New Post /wp-admin/post-new.php1,551 ▲3123.23 ▲0.10623.41 ▼13.53101.20 ▲32.33
Media Library /wp-admin/upload.php1,444 ▲534.48 ▲0.25103.13 ▲0.7542.77 ▼1.79
All Sliders /wp-admin/edit.php?post_type=zenith_slider1,0972.2837.4526.68
Add Slider /wp-admin/post-new.php?post_type=zenith_slider7,3505.68130.4377.37

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zenith-slider-responsive-content-slide/cmb2/init.php:71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/zenith-slider-responsive-content-slide/cmb2/bootstrap.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=zenith_slider
    • > Rendering (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === zenith-slider-responsive-content-slide === )
  • Donate link: Invalid URI found ("")
The official readme.txt might help

zenith-slider-responsive-content-slide/zenith.php 85% from 13 tests

The main PHP file in "Zenith Slider" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("zenith-slider-responsive-content-slide.php" instead of "zenith.php")

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
Success! There were no dangerous files found in this plugin12,805 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
CSS91,1351,1075,214
PHP208841,9553,661
JavaScript82642652,021
Sass11168231,116
SVG100520
PO File1111114273

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity37.41
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods213
▷ Static methods4320.19%
▷ Public methods20093.90%
▷ Protected methods104.69%
▷ Private methods31.41%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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
30 PNG files occupy 0.56MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
assets/images/hgh_default.png16.83KB7.20KB▼ 57.22%
assets/images/macbook.png20.81KB9.51KB▼ 54.31%
assets/images/up.png1.64KB1.74KB0.00%