78% visit-email-by-systems-mit-ltd

Code Review | Visit Email by Systems Mit Ltd

WordPress plugin Visit Email by Systems Mit Ltd scored78%from 54 tests.

About plugin

  • Plugin page: visit-email-by-sy...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2023
  • Latest release: Mar 14, 2023
  • Number of updates: 33
  • Update frequency: every 0.2 days
  • Top authors: muneerbhutto (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /381 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.99ms] Passed 4 tests

An overview of server-side resources used by Visit Email by Systems Mit Ltd
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.06328.19 ▲287.50
Dashboard /wp-admin3.32 ▲0.0247.18 ▼3.41
Posts /wp-admin/edit.php3.37 ▲0.0247.11 ▼2.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.37 ▼19.38
Media Library /wp-admin/upload.php3.24 ▲0.0234.98 ▲1.17

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Visit Email by Systems Mit Ltd
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,482 ▼27513.58 ▼0.600.81 ▼1.1612.37 ▼27.47
Dashboard /wp-admin2,219 ▲315.82 ▲0.96104.34 ▼8.1437.34 ▼6.89
Posts /wp-admin/edit.php2,108 ▲192.05 ▲0.0539.52 ▼3.0335.75 ▲0.74
Add New Post /wp-admin/post-new.php1,546 ▲1323.19 ▼0.01628.85 ▼69.1059.41 ▼8.12
Media Library /wp-admin/upload.php1,401 ▲104.24 ▲0.0695.29 ▼9.6046.29 ▲2.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/visit-email-by-systems-mit-ltd/visit-content.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/visit-email-by-systems-mit-ltd/visit-menu.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visit-email-by-systems-mit-ltd/visit-email.php:13

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

visit-email-by-systems-mit-ltd/visit-email.php 92% from 13 tests

The primary PHP file in "Visit Email by Systems Mit Ltd" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("visit-email-by-systems-mit-ltd.php" instead of "visit-email.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin106 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32620106

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.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 were not PNG files found in your plugin