Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.94ms] Passed 4 tests
An overview of server-side resources used by TomS Image Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.75 ▼8.42 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.03 ▼13.51 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.56 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.10 ▼16.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.85 ▲1.47 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TomS Image Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.80 ▲0.40 | 1.70 ▼0.03 | 44.95 ▼4.73 |
Dashboard /wp-admin | 2,221 ▲21 | 4.86 ▼1.02 | 113.96 ▼2.42 | 43.34 ▼0.42 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.01 | 33.85 ▼4.46 | 36.93 ▲2.59 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,827 | 27.88 ▲4.71 | 921.51 ▲226.89 | 60.12 ▼3.27 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.02 | 110.04 ▼6.92 | 47.15 ▼1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: gallery block, image from url block, image block, block, slider from url...
toms-image-slider/toms-image-slider.php 92% from 13 tests
"TomS Image Slider" version 1.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "7.0")
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
No dangerous file extensions were detected1,704 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 84 | 127 | 892 |
CSS | 2 | 8 | 39 | 549 |
JSON | 3 | 0 | 0 | 130 |
PHP | 3 | 17 | 14 | 69 |
PO File | 1 | 23 | 24 | 64 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo24.png | 0.77KB | 0.88KB | 0.00% |
img/default.png | 13.34KB | 5.68KB | ▼ 57.42% |