Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.74ms] Passed 4 tests
Analyzing server-side resources used by Frontpage Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.69 ▼12.13 |
Dashboard /wp-admin | 3.46 ▲0.16 | 45.22 ▲0.98 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 50.27 ▲3.16 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 94.12 ▼2.95 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.45 ▲5.65 |
Show All Sliders /wp-admin/edit.php?post_type=fp_images | 3.43 | 34.95 |
FrontPage Sliders /wp-admin/admin.php?page=my-top-level-handle | 3.35 | 30.49 |
Server storage [IO: ▲4.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Frontpage Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.87 ▼0.78 | 8.68 ▲6.86 | 37.33 ▼8.82 |
Dashboard /wp-admin | 2,232 ▲41 | 5.88 ▲0.00 | 98.89 ▲1.69 | 37.57 ▼2.90 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 2.00 ▼0.01 | 39.33 ▲3.33 | 38.28 ▲3.18 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 18.33 ▼0.03 | 609.11 ▼51.55 | 65.24 ▲2.15 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.19 ▼0.04 | 95.75 ▼3.82 | 42.31 ▼3.55 |
Show All Sliders /wp-admin/edit.php?post_type=fp_images | 1,087 | 1.98 | 31.90 | 29.78 |
FrontPage Sliders /wp-admin/admin.php?page=my-top-level-handle | 780 | 2.05 | 25.77 | 25.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/frontpage-slider/frontpage-slider.php
- > /wp-content/plugins/frontpage-slider/index.php
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'FPSL_DIRtemplates/bannerSlider/bannerSlider_metaB.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/frontpage-slider/templates/bannerSlider/bannerSlider.php on line 22
- > PHP Warning
Use of undefined constant FPSL_DIR - assumed 'FPSL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontpage-slider/templates/headerSlider/headerSlider.php on line 22
- > PHP Warning
Use of undefined constant FPSL_DIR - assumed 'FPSL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontpage-slider/templates/bannerSlider/bannerSlider.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/frontpage-slider/inc/post-types.php:5
- > PHP Warning
include_once(): Failed opening 'FPSL_DIRtemplates/headerSlider/slider-section.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/frontpage-slider/templates/headerSlider/headerSlider.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontpage-slider/inc/metaboxes/slider_meta_box.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontpage-slider/templates/bannerSlider/bannerSlider_metaB.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontpage-slider/templates/headerSlider/headerSlider_metaB.php:14
- > PHP Warning
include_once(): Failed opening 'FPSL_DIRtemplates/bannerSlider/slider-section.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/frontpage-slider/templates/bannerSlider/bannerSlider.php on line 20
- > PHP Warning
Use of undefined constant FPSL_DIR - assumed 'FPSL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontpage-slider/templates/bannerSlider/bannerSlider.php on line 22
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: frontpage slider, image slider, js slider, slider, wordpress slider...
frontpage-slider/frontpage-slider.php Passed 13 tests
Analyzing the main PHP file in "Frontpage Slider" version 0.1.5
79 characters long description:
FrontPage slider has predesignated templates that you can use inside your theme
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
Everything looks great! No dangerous files found in this plugin1,948 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 71 | 146 | 706 |
PHP | 12 | 156 | 142 | 668 |
CSS | 2 | 17 | 13 | 574 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 3.85MB with 2.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 2,047.58KB | 516.66KB | ▼ 74.77% |
screenshot-3.png | 1,236.20KB | 333.32KB | ▼ 73.04% |
screenshot-2.png | 377.91KB | 88.87KB | ▼ 76.48% |
screenshot-4.png | 233.92KB | 84.41KB | ▼ 63.91% |
screenshot-5.png | 17.40KB | 10.88KB | ▼ 37.49% |