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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.73ms] Passed 4 tests
An overview of server-side resources used by The Logo Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.37 ▲0.90 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.79 ▼4.50 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.32 ▼1.60 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 98.59 ▲4.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.61 ▲2.27 |
All Logos /wp-admin/edit.php?post_type=the_logo_slider | 3.30 | 38.89 |
About Us /wp-admin/edit.php?post_type=the_logo_slider&page=about-us | 3.25 | 32.61 |
Add New Logo /wp-admin/post-new.php?post_type=the_logo_slider | 3.32 | 49.60 |
Logo Slider Setting /wp-admin/edit.php?post_type=the_logo_slider&page=logo-page-setting | 3.29 | 36.02 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for The Logo Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 13.21 ▼1.09 | 3.44 ▲1.42 | 42.74 ▼4.68 |
Dashboard /wp-admin | 2,255 ▲70 | 5.85 ▼0.03 | 97.92 ▼16.95 | 44.23 ▲2.26 |
Posts /wp-admin/edit.php | 2,144 ▲52 | 2.00 ▼0.05 | 39.74 ▼1.53 | 35.32 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,568 ▲48 | 23.34 ▲0.18 | 618.73 ▼51.25 | 50.89 ▼0.70 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.23 ▲0.03 | 99.47 ▼4.36 | 43.74 ▼0.97 |
All Logos /wp-admin/edit.php?post_type=the_logo_slider | 1,116 | 1.96 | 31.67 | 29.67 |
About Us /wp-admin/edit.php?post_type=the_logo_slider&page=about-us | 842 | 2.06 | 25.51 | 31.55 |
Add New Logo /wp-admin/post-new.php?post_type=the_logo_slider | 1,687 | 3.63 | 62.26 | 35.20 |
Logo Slider Setting /wp-admin/edit.php?post_type=the_logo_slider&page=logo-page-setting | 973 | 2.18 | 25.49 | 33.69 |
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
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=the_logo_slider&page=logo-page-setting
- > Notice in wp-content/plugins/the-logo-slider/pages/logo-page-setting.php+21
Undefined index: add_opt_submit
- > GET request to /wp-admin/edit.php?post_type=the_logo_slider&page=logo-page-setting
- > Notice in wp-content/plugins/the-logo-slider/pages/logo-page-setting.php+60
Undefined variable: message
SRP 50% from 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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/the-logo-slider/pages/about-us.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/the-logo-slider/the-logo-slider.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/the-logo-slider/pages/logo-page-setting.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Back end logo slider setting), #2 (Back end add new logo), #3 (Front end slider look)
the-logo-slider/the-logo-slider.php Passed 13 tests
The primary PHP file in "The Logo Slider" version 1.0.0 is used by WordPress to initiate all plugin functionality
69 characters long description:
This plugin will add a responsive logo slider in your wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,992 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 207 | 17 | 1,288 |
CSS | 3 | 52 | 32 | 368 |
PHP | 3 | 81 | 44 | 336 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 112.96KB | 31.18KB | ▼ 72.40% |
screenshot-1.png | 43.79KB | 20.32KB | ▼ 53.60% |
screenshot-2.png | 37.77KB | 17.93KB | ▼ 52.53% |