89% osom-modal-login

Code Review | Osom Modal Login

WordPress plugin Osom Modal Login scored89%from 54 tests.

About plugin

  • Plugin page: osom-modal-login
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 24, 2020
  • Latest release: Nov 13, 2023
  • Number of updates: 45
  • Update frequency: every 24.8 days
  • Top authors: osompress (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

400+ active /5,807 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.02ms] Passed 4 tests

A check of server-side resources used by Osom Modal Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1143.83 ▲0.93
Dashboard /wp-admin3.43 ▲0.0850.95 ▼11.60
Posts /wp-admin/edit.php3.55 ▲0.1945.06 ▼2.87
Add New Post /wp-admin/post-new.php6.01 ▲0.1287.90 ▼9.49
Media Library /wp-admin/upload.php3.36 ▲0.1234.95 ▼0.10
Osom Modal Login /wp-admin/admin.php?page=osom_ml_main_menu3.3231.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Osom Modal Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7714.25 ▼0.091.99 ▲0.0943.32 ▼1.28
Dashboard /wp-admin2,239 ▲625.64 ▼0.0087.05 ▼10.4137.82 ▼5.78
Posts /wp-admin/edit.php2,140 ▲432.00 ▼0.0037.69 ▲1.6331.48 ▼2.65
Add New Post /wp-admin/post-new.php1,549 ▲1423.21 ▲0.22692.43 ▲12.7855.64 ▼4.65
Media Library /wp-admin/upload.php1,440 ▲434.26 ▲0.0996.49 ▼15.1441.87 ▼3.06
Osom Modal Login /wp-admin/admin.php?page=osom_ml_main_menu9582.1427.3526.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: logout, custom login, login popup, modal, wordpress login...

osom-modal-login/osom-modal-login.php 85% from 13 tests

"Osom Modal Login" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 227 characters long)

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
No dangerous file extensions were detected775 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP411757550
CSS118298
PO File1233482
JavaScript117044
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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
Namespaces1
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/info.png0.35KB0.31KB▼ 11.55%
assets/img/icon.png75.96KB28.72KB▼ 62.19%