88% osmig-signup-plugin

Code Review | Osmig Signup Plugin

WordPress plugin Osmig Signup Plugin scored 88% from 54 tests.

About plugin

  • Plugin page: osmig-signup-plugin
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.4-4.9.8
  • WordPress version: 5.9.2
  • First release: Jan 14, 2011
  • Latest release: Oct 21, 2018
  • Number of updates: 14
  • Update frequency: every 202.6 days
  • Top authors: tmertz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,009 total downloads

Benchmarks

Plugin footprint Passed 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.06MB] [CPU: ▼320.05ms] Passed 4 tests

Server-side resources used by Osmig Signup Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0858.60 ▼10.60
Dashboard /wp-admin3.50 ▲0.0937.37 ▼17.64
Posts /wp-admin/edit.php3.72 ▲0.0840.22 ▼56.49
Add New Post /wp-admin/post-new.php6.96 ▼0.0199.47 ▼1,195.48
Media Library /wp-admin/upload.php3.38 ▲0.0826.44 ▲2.87
Configuration /wp-admin/admin.php?page=osmig-configuration3.3423.84
Help /wp-admin/admin.php?page=osmig-help3.3423.81
Osmig /wp-admin/admin.php?page=osmig3.3424.69

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: 2 new tables, 1 new option
New tables
wp_osmig_signups
wp_osmig_fields
New WordPress options
osmig_db_version

Browser metrics Passed 4 tests

Osmig Signup Plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,879 ▲12116.03 ▲0.256.42 ▲0.603.06 ▲0.44
Dashboard /wp-admin2,974 ▲1166.25 ▲0.08137.17 ▼1.06180.09 ▲9.33
Posts /wp-admin/edit.php2,722 ▲313.25 ▲0.0164.62 ▲2.20201.00 ▲57.78
Add New Post /wp-admin/post-new.php1,789 ▲12822.76 ▲6.90429.32 ▼2.61153.72 ▼24.44
Media Library /wp-admin/upload.php1,731 ▲365.56 ▲0.06182.82 ▲28.81205.90 ▼43.36
Configuration /wp-admin/admin.php?page=osmig-configuration1,1362.5059.36175.29
Help /wp-admin/admin.php?page=osmig-help1,0242.3654.58114.50
Osmig /wp-admin/admin.php?page=osmig1,0002.3853.8199.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/osmig-signup-plugin/includes/widget.inc.php
    • > /wp-content/plugins/osmig-signup-plugin/includes/assets.inc.php
    • > /wp-content/plugins/osmig-signup-plugin/includes/shortcodes.inc.php
  • 1× 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/osmig-signup-plugin/osmig-signup-plugin.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
4 plugin tags: input, flexible, signup, form

osmig-signup-plugin/osmig-signup-plugin.php 92% from 13 tests

The primary PHP file in "Osmig Signup Plugin" version 2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin422 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP46744394
CSS10028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin