Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.63MB] [CPU: ▼15.32ms] Passed 4 tests
A check of server-side resources used by Rim Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 54.71 ▲13.18 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.52 ▲0.64 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.62 ▼4.26 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.69 | 36.40 ▼63.96 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 40.42 ▲6.32 |
Add New /wp-admin/post-new.php?post_type=rimaz_slider | 3.14 | 38.84 |
Rim Sliders /wp-admin/edit.php?post_type=rimaz_slider | 3.33 | 40.37 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Rim Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲189 | 13.82 ▼0.56 | 11.21 ▲9.37 | 55.88 ▲10.09 |
Dashboard /wp-admin | 2,235 ▲58 | 5.49 ▼0.30 | 83.47 ▼7.37 | 40.91 ▲0.42 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 2.05 ▲0.06 | 35.34 ▼1.89 | 34.23 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,562 ▲33 | 23.09 ▼0.46 | 679.21 ▲53.22 | 59.20 ▲3.76 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.16 ▼0.00 | 99.71 ▼6.32 | 49.47 ▼1.90 |
Add New /wp-admin/post-new.php?post_type=rimaz_slider | 2,290 | 7.55 | 180.15 | 67.01 |
Rim Sliders /wp-admin/edit.php?post_type=rimaz_slider | 1,124 | 1.97 | 36.72 | 34.52 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
- > Notice in wp-content/plugins/rim-slider/rim_slider.php+214
Undefined index: rim_slider_box_nonce
- > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
- > Notice in wp-content/plugins/rim-slider/rim_slider.php+183
Undefined offset: 0
- > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
- > Notice in wp-content/plugins/rim-slider/rim_slider.php+187
Undefined offset: 1
- > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
- > Notice in wp-content/plugins/rim-slider/rim_slider.php+191
Undefined offset: 2
- > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
- > Notice in wp-content/plugins/rim-slider/rim_slider.php+195
Undefined offset: 3
- > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
- > Notice in wp-content/plugins/rim-slider/rim_slider.php+199
Undefined offset: 4
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
Please fix the following items
- 1× 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/rim-slider/rim_slider.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== rim-slider ===
)
rim-slider/rim_slider.php 92% from 13 tests
Analyzing the main PHP file in "Rim Slider" version 1.0
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("rim-slider.php" instead of "rim_slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,975 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 66 | 63 | 1,484 |
SVG | 1 | 0 | 0 | 284 |
PHP | 1 | 84 | 25 | 195 |
JavaScript | 2 | 4 | 11 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 13 | |
▷ Named functions | 13 | 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 |
img/pagination.png | 1.36KB | 0.58KB | ▼ 57.53% |