Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.55ms] Passed 4 tests
This is a short check of server-side resources used by Magic Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.74 ▼1.04 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.85 ▼2.07 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.23 ▼2.57 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.03 ▼8.26 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.51 ▼1.30 |
Settings /wp-admin/edit.php?post_type=magic_slide&page=settings | 3.24 | 34.33 |
Slide categories /wp-admin/edit-tags.php?taxonomy=magic_slide_category&post_type=magic_slide | 3.36 | 37.79 |
Add Slide /wp-admin/post-new.php?post_type=magic_slide | 3.39 | 50.67 |
All Slides /wp-admin/edit.php?post_type=magic_slide | 3.31 | 38.14 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
magic_slider_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Magic Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 13.89 ▼0.52 | 8.87 ▲7.24 | 43.59 ▲1.75 |
Dashboard /wp-admin | 2,233 ▲53 | 5.65 ▼0.02 | 96.79 ▼0.38 | 41.87 ▲3.29 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.03 ▼0.01 | 34.22 ▼5.98 | 35.81 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,555 ▲19 | 23.54 ▲5.03 | 652.80 ▲4.45 | 55.73 ▼9.55 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.18 ▼0.04 | 96.67 ▼12.72 | 41.28 ▼5.58 |
Settings /wp-admin/edit.php?post_type=magic_slide&page=settings | 926 | 2.00 | 30.21 | 29.25 |
Slide categories /wp-admin/edit-tags.php?taxonomy=magic_slide_category&post_type=magic_slide | 1,309 | 2.12 | 26.98 | 29.60 |
Add Slide /wp-admin/post-new.php?post_type=magic_slide | 2,345 | 7.71 | 168.47 | 62.22 |
All Slides /wp-admin/edit.php?post_type=magic_slide | 1,108 | 1.97 | 30.88 | 31.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- magic_slider_settings
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Magic Slider preview.), #2 (Adding Magic Slider shortcode to the page or post content.), #3 (Magic Slider Settings.)
magic-slider/magic-slider.php Passed 13 tests
This is the main PHP file of "Magic Slider" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
31 characters long description:
Responsive and flexible slider.
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,210 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 84 | 559 | 995 |
Markdown | 1 | 95 | 0 | 483 |
PHP | 4 | 129 | 36 | 400 |
CSS | 2 | 70 | 38 | 307 |
JSON | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 1.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 9 | 100.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.58MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 59.90KB | 26.80KB | ▼ 55.27% |
img/arrow-prev.png | 1.85KB | 1.01KB | ▼ 45.40% |
screenshot-2.png | 69.83KB | 31.41KB | ▼ 55.03% |
img/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
img/arrow-next.png | 1.83KB | 1.22KB | ▼ 33.26% |