78% inboxify-sign-up-form

Code Review | Inboxify Sign Up Form

WordPress plugin Inboxify Sign Up Form scored78%from 54 tests.

About plugin

  • Plugin page: inboxify-sign-up-...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Jul 8, 2017
  • Latest release: Oct 16, 2018
  • Number of updates: 8
  • Update frequency: every 75.0 days
  • Top authors: BudgetMailer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,313 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.45MB] [CPU: ▲0.20ms] Passed 4 tests

Analyzing server-side resources used by Inboxify Sign Up Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4649.64 ▲3.17
Dashboard /wp-admin3.78 ▲0.4856.87 ▼1.03
Posts /wp-admin/edit.php3.83 ▲0.4853.44 ▲2.04
Add New Post /wp-admin/post-new.php6.32 ▲0.4497.82 ▼3.38
Media Library /wp-admin/upload.php3.64 ▲0.4243.05 ▲6.97
Inboxify Sign Up /wp-admin/options-general.php?page=inboxify3.6440.34

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Inboxify Sign Up Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.39 ▼0.091.64 ▼0.2943.22 ▼0.59
Dashboard /wp-admin2,200 ▲235.65 ▲0.0586.36 ▼8.6938.39 ▼5.47
Posts /wp-admin/edit.php2,109 ▲92.31 ▲0.3435.77 ▲0.4435.49 ▼1.69
Add New Post /wp-admin/post-new.php1,530 ▲223.16 ▼0.02647.16 ▼38.5835.21 ▼18.22
Media Library /wp-admin/upload.php1,405 ▲24.13 ▼0.0296.65 ▼13.2742.97 ▼3.57
Inboxify Sign Up /wp-admin/options-general.php?page=inboxify9681.8424.4823.32

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/inboxify-sign-up-form/view/captcha.php
    • > /wp-content/plugins/inboxify-sign-up-form/view/messages.php
    • > /wp-content/plugins/inboxify-sign-up-form/view/head.php
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/inboxify-sign-up-form/view/subscribe.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'Inboxify\\Wordpress\\L10n' not found in wp-content/plugins/inboxify-sign-up-form/view/options.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Inboxify\\Wordpress\\add_action() in wp-content/plugins/inboxify-sign-up-form/src/Inboxify/Wordpress/Button.php:21
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-admin/admin-header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/inboxify-sign-up-form/view/button.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/inboxify-sign-up-form/src/Inboxify/Wordpress/Widget/Subscribe.php:18
    • > PHP Warning
      include(ABSPATHwp-admin/admin-header.php): failed to open stream: No such file or directory in wp-content/plugins/inboxify-sign-up-form/view/button.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/inboxify-sign-up-form/view/button.php:5
    • > PHP Notice
      Undefined variable: url in wp-content/plugins/inboxify-sign-up-form/view/head.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/inboxify-sign-up-form/view/subscribe.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'Inboxify\\Wordpress\\L10n' not found in wp-content/plugins/inboxify-sign-up-form/view/subscribe.php:15

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Shortcode and Widget in action), #2 (Admin settings), #3 (Widget settings)
You can take inspiration from this readme.txt

inboxify-sign-up-form/inboxify-sign-up-form.php Passed 13 tests

The main PHP file in "Inboxify Sign Up Form" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
Easily add Inboxify newsletter sign up forms to your WordPress website with the offical Inboxify Sign Up Form plugin.

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
Success! There were no dangerous files found in this plugin4,928 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP278911,7333,767
JavaScript312243495
PO File2228256494
Markdown1300115
CSS29057

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.79
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods232
▷ Static methods135.60%
▷ Public methods16269.83%
▷ Protected methods6728.88%
▷ Private methods31.29%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants82
▷ Global constants11.22%
▷ Class constants8198.78%
▷ Public constants81100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.44MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/hourglass.png0.70KB0.66KB▼ 6.80%
assets/screenshot-3.png135.32KB55.71KB▼ 58.83%
assets/screenshot-4.png83.87KB33.15KB▼ 60.47%
assets/loading.png0.79KB0.71KB▼ 11.07%
assets/icon-128x128.png5.88KB2.95KB▼ 49.90%