78% osmig-signup-plugin

Code Review | Osmig Signup Plugin

WordPress plugin Osmig Signup Plugin scored 78% 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: 6.3.1
  • 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,175 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.01MB] [CPU: ▼7.61ms] Passed 4 tests

Server-side resources used by Osmig Signup Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.29 ▼3.52
Dashboard /wp-admin3.32 ▲0.0146.22 ▼2.93
Posts /wp-admin/edit.php3.37 ▲0.0145.48 ▼7.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.43 ▼16.92
Media Library /wp-admin/upload.php3.24 ▲0.0137.81 ▲2.94
Help /wp-admin/admin.php?page=osmig-help3.2033.46
Osmig /wp-admin/admin.php?page=osmig3.2033.08
Configuration /wp-admin/admin.php?page=osmig-configuration3.2030.50

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, 7 new options
New tables
wp_osmig_signups
wp_osmig_fields
New WordPress options
widget_recent-comments
osmig_db_version
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Osmig Signup Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲12913.27 ▼1.101.75 ▼0.2437.91 ▼9.92
Dashboard /wp-admin2,271 ▲804.89 ▼0.2199.91 ▼5.9239.71 ▼6.36
Posts /wp-admin/edit.php2,116 ▲242.00 ▼0.0235.46 ▼6.9432.04 ▼7.12
Add New Post /wp-admin/post-new.php1,564 ▲2118.53 ▲0.31635.04 ▲5.1550.59 ▲1.22
Media Library /wp-admin/upload.php1,418 ▲274.22 ▲0.0997.10 ▼1.8044.03 ▼1.04
Help /wp-admin/admin.php?page=osmig-help7962.0622.9825.12
Osmig /wp-admin/admin.php?page=osmig7782.1824.1226.12
Configuration /wp-admin/admin.php?page=osmig-configuration8902.0325.5430.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/osmig-signup-plugin/includes/assets.inc.php
    • > /wp-content/plugins/osmig-signup-plugin/includes/widget.inc.php
    • > /wp-content/plugins/osmig-signup-plugin/includes/shortcodes.inc.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: signup, flexible, input, form

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

The entry point to "Osmig Signup Plugin" version 2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected422 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP46744394
CSS10028

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin