83% e-newsletter-proffix

Code Review | E-Newsletter Plugin für PROFFIX

WordPress plugin E-Newsletter Plugin für PROFFIX scored 83% from 54 tests.

About plugin

  • Plugin page: e-newsletter-proffix
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2017
  • Latest release: Feb 23, 2017
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: pitw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.60ms] Passed 4 tests

A check of server-side resources used by E-Newsletter Plugin für PROFFIX
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.04 ▼6.49
Dashboard /wp-admin3.36 ▲0.0648.94 ▲0.41
Posts /wp-admin/edit.php3.47 ▲0.1247.69 ▼0.03
Add New Post /wp-admin/post-new.php5.94 ▲0.0597.16 ▲0.46
Media Library /wp-admin/upload.php3.28 ▲0.0534.56 ▼0.27
PROFFIX E-Newsletter /wp-admin/options-general.php?page=proffixnewsletter-admin3.2633.28

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_widgetproffixnewsletter
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for E-Newsletter Plugin für PROFFIX
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15214.02 ▼0.374.90 ▲3.2738.05 ▲1.20
Dashboard /wp-admin2,212 ▲235.79 ▲0.8697.53 ▼23.6939.86 ▼3.87
Posts /wp-admin/edit.php2,095 ▲62.16 ▲0.1439.54 ▲3.8034.37 ▲3.13
Add New Post /wp-admin/post-new.php1,547 ▲2718.18 ▼5.19612.45 ▼73.8963.37 ▼5.19
Media Library /wp-admin/upload.php1,394 ▲94.20 ▼0.0296.88 ▲2.9342.09 ▼1.45
PROFFIX E-Newsletter /wp-admin/options-general.php?page=proffixnewsletter-admin1,0262.1822.9630.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_widgetproffixnewsletter
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: attr in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
    • > PHP Notice
      Undefined variable: attr in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
    • > PHP Notice
      Undefined variable: attr in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/e-newsletter-proffix/proffix-newsletter.php:175
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/e-newsletter-proffix/views/admin_settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/e-newsletter-proffix/views/widget.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/e-newsletter-proffix/views/widget_settings.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: proffix, e-newsletter, subscription, newsletter, widget...

e-newsletter-proffix/proffix-newsletter.php 77% from 13 tests

The main PHP file in "E-Newsletter Plugin für PROFFIX" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("e-newsletter-proffix.php" instead of "proffix-newsletter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin494 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP510633414
JavaScript210160
PO File10017
CSS2023

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.00
▷ Minimum class complexity11.00
▷ Maximum class complexity13.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin