78% official-easymailing

Code Review | Official Easymailing

WordPress plugin Official Easymailing scored78%from 54 tests.

About plugin

  • Plugin page: official-easymailing
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.5-5.7.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: Jun 16, 2021
  • Number of updates: 8
  • Update frequency: every 13.7 days
  • Top authors: easymailing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /668 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▼0.35ms] Passed 4 tests

Server-side resources used by Official Easymailing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5247.56 ▲5.50
Dashboard /wp-admin3.82 ▲0.5249.32 ▼0.28
Posts /wp-admin/edit.php3.93 ▲0.5853.66 ▲5.16
Add New Post /wp-admin/post-new.php6.42 ▲0.5387.30 ▼11.78
Media Library /wp-admin/upload.php3.74 ▲0.5243.73 ▲11.30
Configuración /wp-admin/admin.php?page=easymailing_configuration3.7539.26
Formularios Popup /wp-admin/admin.php?page=easymailing_forms_popup3.7534.56
Formularios /wp-admin/admin.php?page=easymailing_forms3.7532.26
Formularios Incrustado /wp-admin/admin.php?page=easymailing_forms_embedded3.7535.01

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 210 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Official Easymailing: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲16013.57 ▼0.791.80 ▲0.0242.63 ▼5.87
Dashboard /wp-admin2,299 ▲1205.28 ▲0.22126.22 ▲11.2042.30 ▼5.51
Posts /wp-admin/edit.php2,189 ▲972.38 ▲0.3739.47 ▲1.2633.86 ▼0.95
Add New Post /wp-admin/post-new.php6,444 ▲4,91031.00 ▲7.68969.01 ▲311.5540.33 ▼18.04
Media Library /wp-admin/upload.php1,484 ▲964.55 ▲0.37110.64 ▲9.6047.97 ▲4.31
Configuración /wp-admin/admin.php?page=easymailing_configuration8101.509.7925.30
Formularios Popup /wp-admin/admin.php?page=easymailing_forms_popup8101.5010.4820.80
Formularios /wp-admin/admin.php?page=easymailing_forms8101.688.2121.13
Formularios Incrustado /wp-admin/admin.php?page=easymailing_forms_embedded8101.508.8415.81

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/official-easymailing/easymailing-official.php
  • 127× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/official-easymailing/templates/Admin/Form/index.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/official-easymailing/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/official-easymailing/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/official-easymailing/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/official-easymailing/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/official-easymailing/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/official-easymailing/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Easymailing\\App\\Core\\Provider\\ProviderInterface' not found in wp-content/plugins/official-easymailing/src/Core/Provider/EnqueueProvider.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/official-easymailing/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/official-easymailing/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
6 plugin tags: easymailing, suscribe, webform, newsletter, form...

official-easymailing/easymailing-official.php 85% from 13 tests

"Official Easymailing" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("official-easymailing.php" instead of "easymailing-official.php")
  • 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 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin5,596 lines of code in 197 files:
LanguageFilesBlank linesComment linesLines of code
PHP1841,2821,4514,818
PO File3159198462
JSON600312
CSS2002
JavaScript2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity3.30
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces20
Interfaces2
Traits0
Classes155
▷ Abstract classes10.65%
▷ Concrete classes15499.35%
▷ Final classes21.30%
Methods322
▷ Static methods309.32%
▷ Public methods27184.16%
▷ Protected methods329.94%
▷ Private methods195.90%
Functions25
▷ Named functions520.00%
▷ Anonymous functions2080.00%
Constants19
▷ Global constants15.26%
▷ Class constants1894.74%
▷ Public constants1583.33%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/build/plugin/img/embedded.png9.88KB2.49KB▼ 74.84%
assets/build/plugin/img/popup.png9.88KB2.50KB▼ 74.64%