83% telsender-events

Code Review | TelSender Event

WordPress plugin TelSender Event scored83%from 54 tests.

About plugin

  • Plugin page: telsender-events
  • Plugin version: 0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8
  • WordPress version: 6.3.1
  • First release: Oct 17, 2021
  • Latest release: Nov 8, 2021
  • Number of updates: 3
  • Update frequency: every 7.7 days
  • Top authors: pechenki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by TelSender Event
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.98 ▼4.58
Dashboard /wp-admin3.31 ▲0.0151.40 ▲1.37
Posts /wp-admin/edit.php3.36 ▲0.0052.09 ▲3.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.02 ▼8.35
Media Library /wp-admin/upload.php3.23 ▲0.0039.69 ▲0.69

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by TelSender Event
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.081.60 ▼0.1643.02 ▲4.43
Dashboard /wp-admin2,195 ▲155.64 ▼0.0293.11 ▲2.2143.42 ▼1.63
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0144.87 ▲7.8734.17 ▼1.45
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▼0.63662.86 ▼37.9364.55 ▲10.43
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.09112.72 ▲19.7448.05 ▲2.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/telsender-events/assets/template/settings.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

telsender-events/index.php 85% from 13 tests

The primary PHP file in "TelSender Event" version 0.2 is used by WordPress to initiate all plugin functionality
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 ("telsender-events.php" instead of "index.php")
  • Description: Please use more than 10 characters for the plugin description (currently 0 characters long)

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
No dangerous file extensions were detected1,204 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7204186568
CSS23219553
Markdown111055
JavaScript211128

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.50
▷ Minimum class complexity2.00
▷ Maximum class complexity69.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods1033.33%
▷ Public methods2583.33%
▷ Protected methods13.33%
▷ Private methods413.33%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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