72% gmo-page-transitions

Code Review | Plugin Name: GMO Page Transitions

WordPress plugin Plugin Name: GMO Page Transitions scored72%from 54 tests.

About plugin

  • Plugin page: gmo-page-transitions
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: Jan 29, 2016
  • Number of updates: 22
  • Update frequency: every 49.8 days
  • Top authors: Takeaki Nagashima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,010 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.41ms] Passed 4 tests

This is a short check of server-side resources used by Plugin Name: GMO Page Transitions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.79 ▲2.13
Dashboard /wp-admin3.32 ▲0.0246.89 ▼0.75
Posts /wp-admin/edit.php3.37 ▲0.0244.75 ▼3.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.35 ▼23.45
Media Library /wp-admin/upload.php3.24 ▲0.0135.48 ▲1.68
GMO Page Transitions /wp-admin/options-general.php?page=ido_change3.1827.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Plugin Name: GMO Page Transitions: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.55 ▼0.828.89 ▲7.1242.22 ▲3.44
Dashboard /wp-admin2,210 ▲225.83 ▲0.03111.21 ▲4.8342.31 ▼0.37
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0135.50 ▼1.6131.40 ▼8.17
Add New Post /wp-admin/post-new.php1,539 ▼323.05 ▲4.76665.84 ▲14.3865.34 ▲17.50
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.0497.73 ▼3.0942.03 ▲0.34
GMO Page Transitions /wp-admin/options-general.php?page=ido_change8512.1827.8029.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ido_change
    • > Notice in wp-content/plugins/gmo-page-transitions/gmo-page-transitions.php+80
    Undefined variable: val1flag
    • > GET request to /wp-admin/options-general.php?page=ido_change
    • > Notice in wp-content/plugins/gmo-page-transitions/gmo-page-transitions.php+81
    Undefined variable: val2flag

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gmo-page-transitions/gmo-page-transitions.php:27

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=ido_change
    • > Network (severe)
    wp-content/plugins/gmo-page-transitions/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=ido_change
    • > Network (severe)
    wp-content/plugins/gmo-page-transitions/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=ido_change
    • > Network (severe)
    wp-content/plugins/gmo-page-transitions/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=ido_change
    • > Network (severe)
    wp-content/plugins/gmo-page-transitions/images/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Plugin Name: GMO Page Transitions === )
  • Screenshots: Screenshot #1 (Settings Page) image required
You can look at the official readme.txt

gmo-page-transitions/gmo-page-transitions.php Passed 13 tests

The main PHP script in "Plugin Name: GMO Page Transitions" version 1.3 is automatically included on every request by WordPress
64 characters long description:
GMO Page Transitions adds Page Transitions actions to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected220 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP117980
Sass18069
JavaScript20050
XML30019
CSS2292

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.19MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png133.32KB36.87KB▼ 72.35%
images/wpshop_bnr_themes.png13.39KB5.79KB▼ 56.74%
images/wpshop_logo.png7.22KB5.91KB▼ 18.12%
images/wpshop_bnr_plugins.png13.29KB5.68KB▼ 57.23%
images/wpcloud_logo.png4.90KB2.99KB▼ 39.04%