71% gmo-showtime

Code Review | Plugin Name: GMO Showtime

WordPress plugin Plugin Name: GMO Showtime scored71%from 54 tests.

About plugin

  • Plugin page: gmo-showtime
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.4
  • WordPress version: 6.3.1
  • First release: Apr 14, 2014
  • Latest release: Jan 29, 2016
  • Number of updates: 50
  • Update frequency: every 22.6 days
  • Top authors: Takeaki Nagashima (98%)Otto42 (4%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /16,442 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.55MB] [CPU: ▼17.14ms] Passed 4 tests

A check of server-side resources used by Plugin Name: GMO Showtime
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1537.67 ▼1.85
Dashboard /wp-admin3.45 ▲0.1047.26 ▼12.21
Posts /wp-admin/edit.php3.56 ▲0.2146.70 ▲0.12
Add New Post /wp-admin/post-new.php3.29 ▼2.5937.10 ▼54.63
Media Library /wp-admin/upload.php3.37 ▲0.1434.98 ▲0.24
GMO Showtime /wp-admin/options-general.php?page=gmoshowtime3.3835.13
Carousel /wp-admin/edit.php?post_type=gmo-showtime3.4135.37
Add New /wp-admin/post-new.php?post_type=gmo-showtime3.2933.20

Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Name: GMO Showtime
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲21113.64 ▼0.575.65 ▲3.9336.97 ▼13.41
Dashboard /wp-admin2,237 ▲525.81 ▼0.0799.62 ▼2.3038.13 ▼5.97
Posts /wp-admin/edit.php2,120 ▲282.05 ▲0.0639.60 ▼1.0135.11 ▼2.28
Add New Post /wp-admin/post-new.php1,576 ▲5518.20 ▼4.89643.55 ▼32.0059.35 ▼3.57
Media Library /wp-admin/upload.php1,413 ▲284.22 ▲0.0496.29 ▼3.6143.31 ▼0.08
GMO Showtime /wp-admin/options-general.php?page=gmoshowtime1,3072.1365.1754.94
Carousel /wp-admin/edit.php?post_type=gmo-showtime1,1141.9333.4833.93
Add New /wp-admin/post-new.php?post_type=gmo-showtime1,7463.7161.3632.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=gmo-showtime
    • > Notice in wp-content/plugins/gmo-showtime/includes/pan-pan-pan.php+51
    Undefined index: slide_link
    • > GET request to /wp-admin/post-new.php?post_type=gmo-showtime
    • > Notice in wp-content/plugins/gmo-showtime/includes/pan-pan-pan.php+52
    Undefined index: slide_blank

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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gmo-showtime/includes/admin.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gmo-showtime/includes/pan-pan-pan.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gmo-showtime/includes/pan-pan-pan.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=gmoshowtime
    • > Network (severe)
    wp-content/plugins/gmo-showtime/css/gmo-admin-plugin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=gmoshowtime
    • > Network (severe)
    wp-content/plugins/gmo-showtime/images/bnr_themes.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=gmoshowtime
    • > Network (severe)
    wp-content/plugins/gmo-showtime/images/bnr_plugins.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=gmoshowtime
    • > Network (severe)
    wp-content/plugins/gmo-showtime/images/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% 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
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === Plugin Name: GMO Showtime === )
  • Screenshots: Please add an image for screenshot #2 (Color settings)
You can take inspiration from this readme.txt

gmo-showtime/gmo-showtime.php 85% from 13 tests

This is the main PHP file of "Plugin Name: GMO Showtime" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 245 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin1,964 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP311833819
CSS4143566
Sass2326303
JavaScript62545191
XML70058
JSON10025
Markdown1102

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods1560.00%
▷ Protected methods00.00%
▷ Private methods1040.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
18 PNG files occupy 0.50MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wpcloud_bnr_themes.png8.66KB3.83KB▼ 55.75%
images/wpcloud_bnr_plugins.png9.14KB4.07KB▼ 55.50%
img/blue.png4.44KB0.13KB▼ 97.07%
img/transparent.png2.61KB0.14KB▼ 94.53%
images/wpshop_bnr_plugins.png13.29KB5.68KB▼ 57.23%