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
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.29ms] Passed 4 tests
An overview of server-side resources used by Cinza Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 46.81 ▲0.53 |
Dashboard /wp-admin | 3.53 ▲0.18 | 49.50 ▼15.96 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 55.39 ▼1.12 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 89.61 ▼0.61 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.39 ▲2.98 |
All Sliders /wp-admin/edit.php?post_type=cinza_slider | 3.53 | 43.89 |
Add New /wp-admin/post-new.php?post_type=cinza_slider | 3.51 | 49.56 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Cinza Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.52 ▼0.12 | 2.11 ▲0.05 | 40.79 ▼2.13 |
Dashboard /wp-admin | 2,224 ▲59 | 5.63 ▼0.01 | 85.78 ▼14.16 | 40.43 ▼3.82 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.00 ▲0.05 | 39.68 ▼1.84 | 39.73 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,551 ▲20 | 21.02 ▼2.06 | 637.01 ▼37.14 | 57.74 ▼5.68 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.24 ▼0.07 | 99.50 ▼14.32 | 44.05 ▼3.88 |
All Sliders /wp-admin/edit.php?post_type=cinza_slider | 1,268 | 3.37 | 45.13 | 28.76 |
Add New /wp-admin/post-new.php?post_type=cinza_slider | 2,819 | 3.72 | 67.70 | 90.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× 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/cinza-slider/includes/backend-cpts.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cinza-slider/includes/backend-shortcodes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
5 plugin tags: slideshow, metafizzy, slider, flickity, carousel
cinza-slider/cinza-slider.php Passed 13 tests
Analyzing the main PHP file in "Cinza Slider" version 1.2.5
24 characters long description:
A minimal slider plugin.
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 plugin2,096 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 149 | 106 | 1,127 |
CSS | 7 | 120 | 25 | 574 |
JavaScript | 5 | 83 | 125 | 379 |
SVG | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 20 | 90.91% |
▷ Anonymous functions | 2 | 9.09% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/razorfrog-icon-turquoise.png | 40.34KB | 15.75KB | ▼ 60.95% |
assets/images/cinza-icon-pink.png | 13.98KB | 6.67KB | ▼ 52.29% |
assets/images/metafizzy-icon.png | 37.06KB | 13.97KB | ▼ 62.31% |
assets/images/icon-move.png | 7.33KB | 3.89KB | ▼ 46.98% |
assets/images/icon-delete.png | 4.73KB | 2.48KB | ▼ 47.70% |