Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼6.85ms] Passed 4 tests
An overview of server-side resources used by Awesome Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 44.87 ▲0.60 |
Dashboard /wp-admin | 3.60 ▲0.25 | 57.99 ▼9.85 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 65.44 ▲7.33 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 89.06 ▼23.85 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 43.42 ▲5.72 |
All Sliders /wp-admin/edit.php?post_type=nivo_image_slider | 3.51 | 41.69 |
Add New /wp-admin/post-new.php?post_type=nivo_image_slider | 3.54 | 48.73 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Awesome 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 / | 3,038 ▲277 | 14.79 ▲0.51 | 5.78 ▲3.82 | 42.49 ▼5.86 |
Dashboard /wp-admin | 2,364 ▲187 | 6.15 ▲0.48 | 125.57 ▲23.59 | 44.46 ▲0.43 |
Posts /wp-admin/edit.php | 2,292 ▲192 | 3.39 ▲1.43 | 55.67 ▲15.40 | 37.34 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.61 ▲0.49 | 658.95 ▼26.03 | 39.29 ▼29.08 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.12 ▼0.05 | 80.92 ▼35.93 | 46.70 ▲0.43 |
All Sliders /wp-admin/edit.php?post_type=nivo_image_slider | 1,239 | 3.31 | 43.23 | 27.05 |
Add New /wp-admin/post-new.php?post_type=nivo_image_slider | 2,010 | 3.47 | 75.07 | 40.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/awesome-slider/includes/Nivo_Image_Slider_Meta_Box.php:479
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/awesome-slider/templates/gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/awesome-slider/templates/url.php:2
- > 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 83% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== awesome-slider ===
) - Screenshots: These screenshots require images: #1 (This is the first screen shot), #2 (This is the second screen shot), #3 (This is the six screen shot)
awesome-slider/nivo-image-slider.php 77% from 13 tests
The principal PHP file in "Awesome Slider" v. 1.4.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages/")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-slider.php" instead of "nivo-image-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,411 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 169 | 238 | 1,070 |
JavaScript | 2 | 93 | 71 | 628 |
Sass | 8 | 83 | 0 | 608 |
CSS | 1 | 15 | 7 | 105 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 1 | 2.13% |
▷ Public methods | 30 | 63.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 36.17% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/default-arrows.png | 0.80KB | 0.51KB | ▼ 36.53% |
assets/img/smooth-arrows.png | 3.06KB | 0.27KB | ▼ 91.14% |
assets/img/dark-bullets.png | 3.07KB | 0.42KB | ▼ 86.27% |
assets/img/light-bullets.png | 3.21KB | 0.54KB | ▼ 83.24% |
assets/img/default-bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |