Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.98ms] Passed 4 tests
This is a short check of server-side resources used by Sample Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.58 ▲1.09 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.01 ▼17.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.22 ▼3.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.19 ▼8.79 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 32.08 ▼1.97 |
Sample /wp-admin/options-general.php?page=sample-menu | 3.21 | 30.05 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sample Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 13.66 ▼0.96 | 8.57 ▲6.80 | 40.34 ▼2.02 |
Dashboard /wp-admin | 2,199 ▲25 | 5.54 ▼0.13 | 84.33 ▼20.78 | 36.33 ▼9.08 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.01 ▲0.04 | 36.96 ▼1.14 | 33.95 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,540 ▲9 | 18.42 ▼4.41 | 618.64 ▲10.73 | 63.59 ▲12.08 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.02 | 93.93 ▼5.83 | 41.29 ▼3.78 |
Sample /wp-admin/options-general.php?page=sample-menu | 813 | 1.99 | 22.63 | 25.80 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sample-slider/sample.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sample-slider/admin/sample-admin.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: responsive, carousel, slider, sample, banner...
sample-slider/sample.php 92% from 13 tests
The principal PHP file in "Sample Slider" v. 0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sample-slider.php" instead of "sample.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin8,484 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 16 | 73 | 3,455 |
Sass | 9 | 1,152 | 14 | 2,303 |
LESS | 9 | 1,152 | 87 | 2,231 |
SVG | 1 | 0 | 0 | 399 |
PHP | 2 | 61 | 45 | 84 |
JavaScript | 3 | 6 | 7 | 8 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.46MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 14.04KB | 11.77KB | ▼ 16.21% |
img/pagination.png | 1.36KB | 0.58KB | ▼ 57.53% |
assets/screenshot-1.png | 445.31KB | 249.60KB | ▼ 43.95% |
documentation/img/code_sample.png | 14.04KB | 11.77KB | ▼ 16.21% |