83% one-login

Code Review | One-Login

WordPress plugin One-Login scored83%from 54 tests.

About plugin

  • Plugin page: one-login
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2014
  • Latest release: Nov 10, 2014
  • Number of updates: 19
  • Update frequency: every 15.2 days
  • Top authors: ifkooo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,079 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲328.57ms] 75% from 4 tests

This is a short check of server-side resources used by One-Login
Please take the time to fix the following items
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 328.57ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.04383.64 ▲336.55
Dashboard /wp-admin3.35 ▲0.04550.62 ▲490.99
Posts /wp-admin/edit.php3.46 ▲0.10712.54 ▲659.64
Add New Post /wp-admin/post-new.php5.93 ▲0.04265.47 ▲171.06
Media Library /wp-admin/upload.php3.27 ▲0.04352.20 ▲315.69

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

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

Browser metrics Passed 4 tests

Checking browser requirements for One-Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.28 ▲0.031.91 ▲0.1842.63 ▼4.75
Dashboard /wp-admin2,213 ▲365.56 ▼0.1195.73 ▼1.4868.03 ▲24.48
Posts /wp-admin/edit.php2,115 ▲151.93 ▼0.0834.34 ▼6.2333.43 ▼2.37
Add New Post /wp-admin/post-new.php1,538 ▲421.51 ▲3.19698.21 ▲23.2551.08 ▼15.07
Media Library /wp-admin/upload.php1,415 ▲154.16 ▼0.0797.61 ▼3.9278.86 ▲26.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_one_login_btt
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/one-login/one-login.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/one-login/widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (http://one-login.info/wp/wp1.jpg), #2 (http://one-login.info/wp/wp2.jpg)
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

one-login/one-login.php Passed 13 tests

The main file in "One-Login" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Add Social Box Login to your blog!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin216 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5327216

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.50
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
fav_icon.png0.35KB0.24KB▼ 30.83%