78% egrapes-wp-emails-events

Code Review | eGrapes WP EMails Events

WordPress plugin eGrapes WP EMails Events scored78%from 54 tests.

About plugin

  • Plugin page: egrapes-wp-emails...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 29, 2017
  • Latest release: Jul 29, 2017
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: neerajmourya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /584 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by eGrapes WP EMails Events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.20 ▼5.24
Dashboard /wp-admin3.31 ▲0.0144.04 ▼7.62
Posts /wp-admin/edit.php3.36 ▲0.0146.76 ▼2.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.58 ▼11.09
Media Library /wp-admin/upload.php3.24 ▲0.0136.21 ▲5.23
eGrapes Emails /wp-admin/options-general.php?page=ewee-options-menu3.2029.50

Server storage [IO: ▲0.19MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for eGrapes WP EMails Events
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.61 ▼0.761.68 ▼0.6438.62 ▼7.16
Dashboard /wp-admin2,210 ▲224.85 ▼1.05108.40 ▼6.2040.73 ▼6.10
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0439.70 ▲3.6134.96 ▲0.21
Add New Post /wp-admin/post-new.php1,539 ▲623.29 ▼0.02656.53 ▼29.2950.78 ▼6.64
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0692.25 ▼7.1140.48 ▼2.22
eGrapes Emails /wp-admin/options-general.php?page=ewee-options-menu8332.0730.7224.91

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • 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
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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/egrapes-wp-emails-events/egrapes-wp-emails-events.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/egrapes-wp-emails-events/options.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=ewee-options-menu
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).tabs is not a function" "TypeError: $(...).tabs is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/egrapes-wp-emails-events/js/scripts.js?ver=6.3.1:8:39)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=ewee-options-menu
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).tabs is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === egrapes-wp-emails-events === )
  • Screenshots: Please add an image for screenshot #1 (Email customization user interface in dashboard's settings options.)
Please take inspiration from this readme.txt

egrapes-wp-emails-events/egrapes-wp-emails-events.php 92% from 13 tests

This is the main PHP file of "eGrapes WP EMails Events" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 310 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,941 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS455821,630
PHP241128301
JavaScript11010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity39.00
▷ Minimum class complexity23.00
▷ Maximum class complexity55.00
Average method complexity6.85
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.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
9 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png18.13KB6.43KB▼ 64.51%
css/base/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
css/base/images/ui-icons_ffffff_256x240.png6.33KB4.18KB▼ 33.99%
images/egrapes-logo-1000x300.png31.97KB14.70KB▼ 54.02%
css/base/images/ui-icons_cc0000_256x240.png4.57KB4.18KB▼ 8.43%