Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; SWER_Plugin_Info_Widget has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼54.74ms] Passed 4 tests
An overview of server-side resources used by Developer Showcase
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 6.98 ▼34.00 |
Dashboard /wp-admin | 2.19 ▼1.15 | 7.25 ▼57.83 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 9.04 ▼35.02 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.69 | 10.50 ▼92.11 |
Media Library /wp-admin/upload.php | 2.19 ▼1.03 | 6.97 ▼29.71 |
All Theme /wp-admin/edit.php?post_type=theme | 2.20 | 7.63 |
Add New /wp-admin/post-new.php?post_type=theme | 2.19 | 10.26 |
Add New /wp-admin/post-new.php?post_type=plugin | 2.19 | 7.33 |
All Plugins /wp-admin/edit.php?post_type=plugin | 2.20 | 8.78 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_swer-plugin-info-widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_swer-theme-info-widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Developer Showcase
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲211 | 13.49 ▼0.77 | 13.71 ▲12.05 | 40.86 ▼2.64 |
Dashboard /wp-admin | 2,249 ▲75 | 5.65 ▼0.02 | 104.92 ▲6.47 | 40.14 ▼3.15 |
Posts /wp-admin/edit.php | 2,158 ▲61 | 2.21 ▲0.19 | 45.57 ▲7.86 | 39.13 ▲4.89 |
Add New Post /wp-admin/post-new.php | 1,572 ▲41 | 23.21 ▲0.03 | 632.74 ▼23.11 | 60.49 ▲12.21 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.19 ▲0.04 | 95.80 ▼2.81 | 40.51 ▼1.19 |
All Theme /wp-admin/edit.php?post_type=theme | 1,144 | 2.15 | 33.45 | 28.46 |
Add New /wp-admin/post-new.php?post_type=theme | 2,455 | 7.60 | 167.15 | 66.14 |
Add New /wp-admin/post-new.php?post_type=plugin | 2,454 | 7.79 | 162.41 | 61.48 |
All Plugins /wp-admin/edit.php?post_type=plugin | 1,147 | 2.15 | 33.62 | 27.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; SWER_Plugin_Info_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- widget_swer-plugin-info-widget
- widget_swer-theme-info-widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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 server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; SWER_Plugin_Info_Widget has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+14
Declaration of SWER_Plugin_Info_Widget::widget() should be compatible with WP_Widget::widget($args, $instance)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+29
Declaration of SWER_Plugin_Info_Widget::update() should be compatible with WP_Widget::update($new_instance, $old_instance)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+35
Declaration of SWER_Plugin_Info_Widget::form() should be compatible with WP_Widget::form($instance)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+63
Methods with the same name as their class will not be constructors in a future version of PHP; SWER_Theme_Info_Widget has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+70
Declaration of SWER_Theme_Info_Widget::widget() should be compatible with WP_Widget::widget($args, $instance)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+85
Declaration of SWER_Theme_Info_Widget::update() should be compatible with WP_Widget::update($new_instance, $old_instance)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+91
Declaration of SWER_Theme_Info_Widget::form() should be compatible with WP_Widget::form($instance)
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/developer-showcase/developer-showcase-widgets.php+108
Function create_function() is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SWER_Plugin_Info_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SWER_Theme_Info_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=plugin
- > Notice in wp-content/plugins/developer-showcase/developer-showcase.php+241
Undefined index: post_type
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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/developer-showcase/developer-showcase-widgets.php:7
- > PHP Notice
Undefined index: text in wp-content/plugins/developer-showcase/lib/validator.php on line 194
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_specialchars() in wp-content/plugins/developer-showcase/lib/validator.php:217
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/developer-showcase/developer-showcase.php:17
- > PHP Notice
Undefined index: url in wp-content/plugins/developer-showcase/lib/validator.php on line 177
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=plugin
- > Javascript (severe) in unknown
/wp-content/plugins/developer-showcase/lib/sparkline.min.js?ver=6.3.1 4:3197 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: developer, portfolio, developers, showcase, plugin...
developer-showcase/developer-showcase.php Passed 13 tests
The main PHP script in "Developer Showcase" version 0.4.1 is automatically included on every request by WordPress
62 characters long description:
Plugin showcase manager for WordPress plugin/theme developers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,551 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 605 | 861 | 2,548 |
JavaScript | 1 | 2 | 2 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 28.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 129 | 99.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.77% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.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
There were not PNG files found in your plugin