Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲2.24ms] Passed 4 tests
Analyzing server-side resources used by Simple Responsive Image Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.50 ▲3.93 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.84 ▼1.19 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.23 ▲4.49 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.18 ▲11.64 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.48 ▲1.72 |
All Sliders /wp-admin/edit.php?post_type=slider | 3.29 | 34.17 |
Add New /wp-admin/post-new.php?post_type=slider | 3.30 | 43.19 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Responsive Image Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲205 | 13.55 ▼0.82 | 8.18 ▲6.25 | 35.76 ▼6.73 |
Dashboard /wp-admin | 2,233 ▲45 | 4.87 ▼0.00 | 109.06 ▼7.58 | 42.45 ▼1.78 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.01 ▼0.01 | 41.88 ▲5.12 | 34.58 ▲4.51 |
Add New Post /wp-admin/post-new.php | 1,556 ▲27 | 23.43 ▲5.13 | 616.56 ▼44.76 | 57.22 ▲1.14 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.22 ▲0.04 | 100.48 ▼4.03 | 44.27 ▼3.37 |
All Sliders /wp-admin/edit.php?post_type=slider | 1,086 | 2.01 | 30.30 | 27.98 |
Add New /wp-admin/post-new.php?post_type=slider | 1,624 | 3.99 | 59.57 | 32.22 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- 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 no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-responsive-image-slider/simple-responsive-image-slider.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is missing
- Screenshots: Add images for these screenshots: #1 (After installing the plugin "Responsive Slider" will appear in your dashboard.), #2 (Clicking in "Add New" following window will appear.Give a name of the first slider.), #3 (Set featured image for every slider from media section or upload from your computer.), #4 (Click in "Publish" button.Repeat 2,3 and 4 for every slider.), #5 (Add the shortcode "responsive-slider" in any post or page or wherever you want to add.), #6 (Finally the slider will appear after publishing the post or page like this.)
- Plugin Name: You should set the name of your plugin on the first line (
=== simple-responsive-image-slider ===
)
simple-responsive-image-slider/simple-responsive-image-slider.php Passed 13 tests
"Simple Responsive Image Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
This is a very simple responsive image Slider plugin.Usage of this plugin is very simple.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,216 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 95 | 514 | 1,001 |
CSS | 1 | 0 | 13 | 163 |
PHP | 1 | 24 | 10 | 52 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |