84% email-em

Code Review | Email-Em

WordPress plugin Email-Em scored 84% from 54 tests.

About plugin

  • Plugin page: email-em
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 29, 2016
  • Latest release: Jun 26, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: pbimal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

This is a short check of server-side resources used by Email-Em
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.14 ▲0.04
Dashboard /wp-admin3.32 ▲0.0144.64 ▼4.14
Posts /wp-admin/edit.php3.37 ▲0.0148.59 ▲1.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.58 ▼2.58
Media Library /wp-admin/upload.php3.24 ▲0.0137.11 ▲3.75

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Email-Em: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.61 ▼0.741.60 ▼0.2738.67 ▼5.10
Dashboard /wp-admin2,209 ▲245.91 ▲0.0197.66 ▼18.1642.42 ▼5.82
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0639.62 ▲3.1737.91 ▲3.59
Add New Post /wp-admin/post-new.php1,551 ▲3218.27 ▼4.88600.07 ▼36.6751.12 ▼1.25
Media Library /wp-admin/upload.php1,382 ▼94.18 ▼0.0296.69 ▼3.7243.97 ▼0.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/email-em/email-em.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: private document, share pages, email em, private, share...

email-em/email-em.php Passed 13 tests

The main PHP file in "Email-Em" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
30 characters long description:
Share a page's link over email

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142443

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin