84% netuy-email-marketing

Code Review | Netuy Email Marketing

WordPress plugin Netuy Email Marketing scored84%from 54 tests.

About plugin

  • Plugin page: netuy-email-marke...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2022
  • Latest release: Oct 19, 2022
  • Number of updates: 7
  • Update frequency: every 8.9 days
  • Top authors: netuy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /198 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.21ms] Passed 4 tests

Analyzing server-side resources used by Netuy Email Marketing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.49 ▼11.41
Dashboard /wp-admin3.31 ▲0.0146.90 ▲0.07
Posts /wp-admin/edit.php3.37 ▲0.0145.74 ▼2.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.63 ▼7.39
Media Library /wp-admin/upload.php3.24 ▲0.0137.08 ▲2.81
Netuy Email marketing Setting /wp-admin/options-general.php?page=netuy-em-plugin-setting-url3.2030.87

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Netuy Email Marketing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.091.60 ▼0.3243.71 ▲4.56
Dashboard /wp-admin2,210 ▲224.85 ▼0.05114.81 ▲3.5743.44 ▲1.80
Posts /wp-admin/edit.php2,093 ▲12.04 ▼0.0137.34 ▼4.9832.96 ▼4.49
Add New Post /wp-admin/post-new.php1,536 ▲823.30 ▲4.92667.43 ▲50.1957.36 ▼3.14
Media Library /wp-admin/upload.php1,386 ▼24.23 ▲0.0296.33 ▼5.5142.59 ▲0.27
Netuy Email marketing Setting /wp-admin/options-general.php?page=netuy-em-plugin-setting-url8852.0223.5629.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/netuy-email-marketing/netuy_emailmarketing.php on line 14
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/netuy-email-marketing/netuy_emailmarketing.php on line 14
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/netuy-email-marketing/netuy_emailmarketing.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: emailmarketing, email, netuy, netuy forms

netuy-email-marketing/netuy_emailmarketing.php 85% from 13 tests

This is the main PHP file of "Netuy Email Marketing" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("netuy-email-marketing.php" instead of "netuy_emailmarketing.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
Success! There were no dangerous files found in this plugin164 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16749164

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin