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.04MB] [CPU: ▼1.20ms] Passed 4 tests
This is a short check of server-side resources used by Getty 'Ghetto' Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.49 ▲1.39 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.04 ▼9.58 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 53.59 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.31 ▲2.20 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.89 ▲1.40 |
Getty Slider Settings /wp-admin/edit.php?post_type=ghetto_slide&page=getty-slider-settings | 3.24 | 32.81 |
Add New /wp-admin/post-new.php?post_type=ghetto_slide | 3.38 | 51.44 |
All Ghetto Slides /wp-admin/edit.php?post_type=ghetto_slide | 3.31 | 41.54 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Getty 'Ghetto' Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.29 ▼0.08 | 2.18 ▲0.35 | 40.01 ▼9.00 |
Dashboard /wp-admin | 2,223 ▲46 | 5.62 ▲0.02 | 92.42 ▼3.16 | 39.45 ▼4.13 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 2.04 ▲0.05 | 40.83 ▲2.75 | 35.94 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.00 ▼0.70 | 613.57 ▼108.07 | 51.84 ▼15.60 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.14 ▼0.11 | 98.59 ▼6.93 | 46.63 ▼0.13 |
Getty Slider Settings /wp-admin/edit.php?post_type=ghetto_slide&page=getty-slider-settings | 834 | 2.03 | 24.85 | 26.73 |
Add New /wp-admin/post-new.php?post_type=ghetto_slide | 2,290 | 7.58 | 169.36 | 67.74 |
All Ghetto Slides /wp-admin/edit.php?post_type=ghetto_slide | 1,095 | 1.93 | 30.43 | 33.14 |
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 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/getty-ghetto-slider/templates/swiper.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/getty-ghetto-slider/templates/swiper.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getty-ghetto-slider/getty-slider.php:22
- > PHP Notice
Undefined variable: ghettoSlides in wp-content/plugins/getty-ghetto-slider/templates/swiper.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/getty-ghetto-slider/admin/getty-slider-admin.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== getty-ghetto-slider ===
)
getty-ghetto-slider/getty-slider.php 85% from 13 tests
"Getty 'Ghetto' Slider" version 1...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("getty-ghetto-slider.php" instead of "getty-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 plugin2,530 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 237 | 267 | 2,270 |
PHP | 3 | 33 | 15 | 152 |
CSS | 1 | 15 | 23 | 108 |
PHP code Passed 2 tests
A short 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.08 |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.35MB with 0.23MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 35.50KB | 10.30KB | ▼ 70.99% |
assets/screenshot-2.png | 318.93KB | 121.17KB | ▼ 62.01% |