Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▲8.80ms] Passed 4 tests
A check of server-side resources used by Awesome Wordpress Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 51.41 ▲8.89 |
Dashboard /wp-admin | 3.99 ▲0.69 | 53.61 ▲3.64 |
Posts /wp-admin/edit.php | 4.03 ▲0.68 | 59.35 ▲10.97 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.68 | 99.20 ▲11.70 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 48.31 ▲16.17 |
Slides /wp-admin/edit.php?post_type=slide | 3.95 | 47.70 |
Add New /wp-admin/post-new.php?post_type=slide | 3.99 | 51.52 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Awesome Wordpress Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,132 ▲371 | 15.65 ▲1.09 | 7.20 ▲5.60 | 47.37 ▼0.69 |
Dashboard /wp-admin | 2,442 ▲262 | 6.73 ▲1.10 | 112.51 ▲25.08 | 39.85 ▼2.54 |
Posts /wp-admin/edit.php | 2,373 ▲273 | 3.86 ▲1.89 | 60.00 ▲23.89 | 35.48 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,785 ▲250 | 22.97 ▲4.83 | 571.41 ▼80.47 | 27.87 ▼46.46 |
Media Library /wp-admin/upload.php | 1,513 ▲110 | 4.75 ▲0.56 | 86.94 ▼10.21 | 42.66 ▼1.58 |
Slides /wp-admin/edit.php?post_type=slide | 1,337 | 3.55 | 48.10 | 26.77 |
Add New /wp-admin/post-new.php?post_type=slide | 3,004 | 7.94 | 204.32 | 75.32 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=slide
- > Notice in wp-content/plugins/awesome-wp-slider/inc/cs-framework/classes/metabox.class.php+70
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/awesome-wp-slider/theme-shortcodes/theme-slide.php
- > /wp-content/plugins/awesome-wp-slider/inc/slider-toolkit-post-type.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: owl-carousel slider, wordpress slider, slider, slider carousel, owl-carousel
awesome-wp-slider/awesome-wordpress-slider.php 85% from 13 tests
The principal PHP file in "Awesome Wordpress Slider" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("awesome-wp-slider.php" instead of "awesome-wordpress-slider.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 256 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin32,599 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 12,929 |
CSS | 10 | 603 | 82 | 7,090 |
PHP | 51 | 1,483 | 1,201 | 5,428 |
JavaScript | 11 | 1,068 | 797 | 4,545 |
Sass | 5 | 318 | 0 | 1,952 |
SVG | 1 | 0 | 0 | 655 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 5 | 4.95% |
▷ Public methods | 101 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 54 | |
▷ Named functions | 54 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/cs-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
inc/cs-framework/assets/images/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
inc/cs-framework/assets/images/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |