10% developer-showcase

Code Review | Developer Showcase

WordPress plugin Developer Showcase scored10%from 54 tests.

About plugin

  • Plugin page: developer-showcase
  • Plugin version: 0.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 21, 2012
  • Latest release: Nov 25, 2012
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: swergroup (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,069 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.296.98 ▼34.00
Dashboard /wp-admin2.19 ▼1.157.25 ▼57.83
Posts /wp-admin/edit.php2.19 ▼1.169.04 ▼35.02
Add New Post /wp-admin/post-new.php2.19 ▼3.6910.50 ▼92.11
Media Library /wp-admin/upload.php2.19 ▼1.036.97 ▼29.71
All Theme /wp-admin/edit.php?post_type=theme2.207.63
Add New /wp-admin/post-new.php?post_type=theme2.1910.26
Add New /wp-admin/post-new.php?post_type=plugin2.197.33
All Plugins /wp-admin/edit.php?post_type=plugin2.208.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21113.49 ▼0.7713.71 ▲12.0540.86 ▼2.64
Dashboard /wp-admin2,249 ▲755.65 ▼0.02104.92 ▲6.4740.14 ▼3.15
Posts /wp-admin/edit.php2,158 ▲612.21 ▲0.1945.57 ▲7.8639.13 ▲4.89
Add New Post /wp-admin/post-new.php1,572 ▲4123.21 ▲0.03632.74 ▼23.1160.49 ▲12.21
Media Library /wp-admin/upload.php1,454 ▲544.19 ▲0.0495.80 ▼2.8140.51 ▼1.19
All Theme /wp-admin/edit.php?post_type=theme1,1442.1533.4528.46
Add New /wp-admin/post-new.php?post_type=theme2,4557.60167.1566.14
Add New /wp-admin/post-new.php?post_type=plugin2,4547.79162.4161.48
All Plugins /wp-admin/edit.php?post_type=plugin1,1472.1533.6227.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP56058612,548
JavaScript1223

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 code0.24
Average class complexity28.12
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods130
▷ Static methods00.00%
▷ Public methods12999.23%
▷ Protected methods00.00%
▷ Private methods10.77%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.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