Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▲5.22ms] Passed 4 tests
A check of server-side resources used by Post Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 54.54 ▲13.25 |
Dashboard /wp-admin | 3.98 ▲0.68 | 58.21 ▲5.66 |
Posts /wp-admin/edit.php | 4.02 ▲0.67 | 53.48 ▲9.24 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 95.74 ▼4.22 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 41.82 ▲10.20 |
Server storage [IO: ▲1.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 107 new files
Database: no new tables, 7 new options
New WordPress options |
---|
_cs_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,215 ▲469 | 15.94 ▲1.25 | 7.31 ▲5.43 | 43.03 ▼0.85 |
Dashboard /wp-admin | 2,503 ▲315 | 7.04 ▲2.13 | 122.63 ▲4.09 | 37.38 ▼10.50 |
Posts /wp-admin/edit.php | 2,418 ▲329 | 3.56 ▲1.53 | 58.89 ▲18.21 | 33.29 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,671 ▲152 | 23.68 ▲0.47 | 578.38 ▼41.56 | 33.83 ▼12.31 |
Media Library /wp-admin/upload.php | 1,554 ▲166 | 4.89 ▲0.61 | 84.05 ▼18.09 | 42.81 ▼0.15 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- _cs_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/horizontal-post-slider/public/partials/horizontal-post-slider-public-display.php
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #2 in horizontal-post-slider/assets to your readme.txt
horizontal-post-slider/horizontal-post-slider.php Passed 13 tests
The main file in "Post Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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
Everything looks great! No dangerous files found in this plugin28,802 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 12,928 |
JavaScript | 9 | 1,274 | 794 | 5,823 |
CSS | 7 | 158 | 53 | 3,980 |
PHP | 54 | 1,109 | 1,343 | 2,896 |
Sass | 5 | 287 | 0 | 1,837 |
SVG | 1 | 0 | 0 | 640 |
PO File | 6 | 261 | 285 | 601 |
Markdown | 1 | 18 | 0 | 97 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 10.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 2 | 5.41% |
▷ Concrete classes | 35 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 6 | 5.22% |
▷ Public methods | 111 | 96.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.48% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cs-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
cs-framework/config/images/horizontal-slider-pro.png | 25.86KB | 9.68KB | ▼ 62.57% |
cs-framework/assets/images/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
cs-framework/assets/images/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |