78% gmo-share-connection

Code Review | Plugin Name: GMO Share Connection

WordPress plugin Plugin Name: GMO Share Connectionscored 78% from 54 tests.

About plugin

  • Plugin page: gmo-share-connection
  • Plugin version: 1.3
  • 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: 33
  • Update frequency: every 34.2 days
  • Top authors: Takeaki Nagashima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.99ms] Passed 4 tests

A check of server-side resources used by Plugin Name: GMO Share Connection
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.25 ▼1.14
Dashboard /wp-admin3.38 ▲0.0849.75 ▲1.42
Posts /wp-admin/edit.php3.43 ▲0.0746.02 ▲2.47
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.53 ▲1.20
Media Library /wp-admin/upload.php3.30 ▲0.0738.82 ▲4.80
GMO Share Connection /wp-admin/options-general.php?page=gmo-share-connection3.2733.45

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Name: GMO Share Connection
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲15513.88 ▼0.319.18 ▲7.1944.98 ▼5.25
Dashboard /wp-admin2,207 ▲185.84 ▼0.0899.00 ▼5.1441.56 ▲2.90
Posts /wp-admin/edit.php2,093 ▲252.03 ▼0.0136.12 ▲1.6133.46 ▲0.88
Add New Post /wp-admin/post-new.php1,549 ▲718.42 ▲0.05597.13 ▼32.4868.36 ▲9.50
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0599.16 ▼8.2445.34 ▼0.78
GMO Share Connection /wp-admin/options-general.php?page=gmo-share-connection1,0762.2435.6734.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gmo-share-connection/gmo-share-connection.php:34

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=gmo-share-connection
    • > Network (severe)
    wp-content/plugins/gmo-share-connection/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=gmo-share-connection
    • > Network (severe)
    wp-content/plugins/gmo-share-connection/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=gmo-share-connection
    • > Network (severe)
    wp-content/plugins/gmo-share-connection/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=gmo-share-connection
    • > Network (severe)
    wp-content/plugins/gmo-share-connection/images/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Plugin Name: GMO Share Connection=== )
Please take inspiration from this readme.txt

gmo-share-connection/gmo-share-connection.php 85% from 13 tests

This is the main PHP file of "Plugin Name: GMO Share Connection" version 1.3, 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: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,623 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS65191,377
SVG100460
PHP16336419
Sass2191164
JavaScript31429126
XML80052
JSON10025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
10 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wpcloud_bnr_plugins.png9.14KB4.07KB▼ 55.50%
images/wpshop_logo.png7.22KB5.91KB▼ 18.12%
screenshot-1.png166.39KB47.99KB▼ 71.16%
images/ico_link.png1.00KB0.21KB▼ 79.07%
images/wpcloud_bnr_themes.png8.66KB3.83KB▼ 55.75%