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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 48.70 ▲5.53 |
Dashboard /wp-admin | 3.88 ▲0.57 | 53.74 ▼1.42 |
Posts /wp-admin/edit.php | 3.90 ▲0.55 | 50.47 ▲2.28 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 89.60 ▼2.61 |
Media Library /wp-admin/upload.php | 3.73 ▲0.51 | 43.54 ▲3.48 |
All Sliders /wp-admin/edit.php?post_type=zenith_slider | 3.84 | 40.69 |
Add Slider /wp-admin/post-new.php?post_type=zenith_slider | 4.19 | 55.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 13.51 ▼0.84 | 3.44 ▲1.72 | 40.91 ▼1.75 |
Dashboard /wp-admin | 2,262 ▲73 | 5.07 ▲0.19 | 110.25 ▲2.31 | 39.61 ▼0.33 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.33 ▲0.29 | 39.41 ▲2.59 | 31.51 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,551 ▲31 | 23.23 ▲0.10 | 623.41 ▼13.53 | 101.20 ▲32.33 |
Media Library /wp-admin/upload.php | 1,444 ▲53 | 4.48 ▲0.25 | 103.13 ▲0.75 | 42.77 ▼1.79 |
All Sliders /wp-admin/edit.php?post_type=zenith_slider | 1,097 | 2.28 | 37.45 | 26.68 |
Add Slider /wp-admin/post-new.php?post_type=zenith_slider | 7,350 | 5.68 | 130.43 | 77.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
- > PHP Fatal error
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 ("")
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 1,135 | 1,107 | 5,214 |
PHP | 20 | 884 | 1,955 | 3,661 |
JavaScript | 8 | 264 | 265 | 2,021 |
Sass | 11 | 168 | 23 | 1,116 |
SVG | 1 | 0 | 0 | 520 |
PO File | 1 | 111 | 114 | 273 |
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 code | 0.51 |
Average class complexity | 37.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 213 | |
▷ Static methods | 43 | 20.19% |
▷ Public methods | 200 | 93.90% |
▷ Protected methods | 10 | 4.69% |
▷ Private methods | 3 | 1.41% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
assets/images/hgh_default.png | 16.83KB | 7.20KB | ▼ 57.22% |
assets/images/macbook.png | 20.81KB | 9.51KB | ▼ 54.31% |
assets/images/up.png | 1.64KB | 1.74KB | 0.00% |