Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼163.76ms] Passed 4 tests
Analyzing server-side resources used by Slider SEO
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 33.96 ▲11.01 |
Dashboard /wp-admin | 3.28 ▲0.22 | 46.23 ▲1.05 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 50.03 ▲4.82 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 99.50 ▼661.36 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 34.55 ▲0.45 |
All Slider Items /wp-admin/edit.php?post_type=slider_seo | 3.20 | 38.80 |
Add New Slider /wp-admin/post-new.php?post_type=slider_seo | 3.47 | 42.37 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Slider SEO: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,090 ▲494 | 18.23 ▲2.56 | 12.20 ▲1.08 | 46.42 ▼0.15 |
Dashboard /wp-admin | 3,233 ▲302 | 8.16 ▲2.18 | 161.58 ▲14.25 | 108.13 ▼7.10 |
Posts /wp-admin/edit.php | 3,034 ▲295 | 4.49 ▲1.78 | 85.14 ▲17.71 | 87.50 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,921 ▲421 | 19.18 ▲0.22 | 402.72 ▲16.40 | 110.51 ▲1.42 |
Media Library /wp-admin/upload.php | 1,880 ▲73 | 5.05 ▲0.03 | 114.95 ▼35.02 | 123.61 ▲1.09 |
All Slider Items /wp-admin/edit.php?post_type=slider_seo | 1,749 | 4.47 | 83.24 | 78.55 |
Add New Slider /wp-admin/post-new.php?post_type=slider_seo | 1,427 | 2.29 | 39.63 | 88.89 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=slider_seo
- > Warning in wp-content/plugins/slider-seo/admin/views/admin_gsettings.php+13
include_once(gsettings_partials/autoplay.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/post-new.php?post_type=slider_seo
- > Warning in wp-content/plugins/slider-seo/admin/views/admin_gsettings.php+13
include_once(): Failed opening 'gsettings_partials/autoplay.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/post-new.php?post_type=slider_seo
- > Error in wp-content/plugins/slider-seo/admin/views/admin_gsettings.php+44
Uncaught Error: Call to undefined function autoplay() in wp-content/plugins/slider-seo/admin/views/admin_gsettings.php:44
Stack trace:
#0 wp-content/plugins/slider-seo/admin/slider-seo-admin.php(390): include_once()
#1 wp-admin/includes/template.php(1395): Slider_SEO_Admin->display_main_metabox_gsettings()
#2 wp-admin/edit-form-advanced.php(681): do_meta_boxes()
#3 wp-admin/post-new.php(75): require('/var/www/wordpr...')
#4 {main}
thrown
SRP 0% 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
Almost there! Just fix the following items
- 18× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/slider_type.php
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/autoWidth.php
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/lazyload.php
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/autoheight.php
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/captionPos.php
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/navigation.php
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/width_height.php
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/animation.php
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/navPos.php
- > /wp-content/plugins/slider-seo/admin/views/gsettings_partials/margin.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/slider-seo/admin/views/admin_shortcode.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/slider-seo/admin/includes/add_post_column.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-seo/admin/includes/add_post_type.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/slider-seo/admin/views/admin_shortcode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_meta_box() in wp-content/plugins/slider-seo/admin/includes/add_meta_box.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/slider-seo/admin/views/admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/slider-seo/admin/slider-seo-template.php:1
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/slider-seo/admin/views/admin_shortcode.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slider-seo/admin/includes/slider_seo_shortcode.php:208
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/slider-seo/admin/views/admin_gsettings.php:1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Screenshots: A description for screenshot #3 is required in slider-seo/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 36 tag instead of maximum 10
slider-seo/slider-seo.php 92% from 13 tests
The primary PHP file in "Slider SEO" version 1.2.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 160 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,378 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 677 | 40 | 3,748 |
JavaScript | 17 | 668 | 1,045 | 2,349 |
PHP | 30 | 355 | 241 | 1,281 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
Functions | 34 | |
▷ Named functions | 34 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin