84% wp-globalinput-login

Code Review | WP GlobalInput Login

WordPress plugin WP GlobalInput Login scored84%from 54 tests.

About plugin

  • Plugin page: wp-globalinput-login
  • Plugin version: 1.0.0
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2018
  • Latest release: Jan 27, 2019
  • Number of updates: 10
  • Update frequency: every 19.2 days
  • Top authors: hewzulla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /570 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WP GlobalInput Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.44 ▼6.87
Dashboard /wp-admin3.32 ▲0.0245.29 ▼2.53
Posts /wp-admin/edit.php3.37 ▲0.0149.74 ▲2.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.00 ▼10.53
Media Library /wp-admin/upload.php3.24 ▲0.0133.69 ▲0.16

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP GlobalInput Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.06 ▼0.221.84 ▲0.0831.68 ▼12.77
Dashboard /wp-admin2,206 ▲155.90 ▲1.03105.82 ▲3.7141.97 ▲1.30
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0038.69 ▲2.3235.42 ▲5.88
Add New Post /wp-admin/post-new.php1,537 ▲423.20 ▲0.06630.55 ▲22.4149.28 ▼14.39
Media Library /wp-admin/upload.php1,391 ▲94.25 ▲0.0595.37 ▼3.8538.71 ▼3.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-globalinput-login/wp-globalinput-login.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: global input app, mobile sign in

wp-globalinput-login/wp-globalinput-login.php 92% from 13 tests

"WP GlobalInput Login" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 637 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin144 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript372094
PHP1151450

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png13.02KB5.79KB▼ 55.53%
assets/icon-256x256.png34.57KB14.24KB▼ 58.80%