84% mmt-eventon-reports-lite

Code Review | EventON Report

WordPress plugin EventON Report scored84%from 54 tests.

About plugin

  • Plugin page: mmt-eventon-repor...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Jul 9, 2021
  • Number of updates: 10
  • Update frequency: every 31.8 days
  • Top authors: momothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /957 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
This plugin's installer ran successfully

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

Server-side resources used by EventON Report
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.19 ▼2.84
Dashboard /wp-admin3.31 ▲0.0150.46 ▲1.26
Posts /wp-admin/edit.php3.36 ▲0.0048.19 ▲1.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.75 ▼0.54
Media Library /wp-admin/upload.php3.23 ▲0.0037.52 ▲0.04

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

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

Browser metrics Passed 4 tests

EventON Report: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.36 ▲0.081.92 ▲0.0842.37 ▼2.90
Dashboard /wp-admin2,198 ▲275.48 ▼0.1784.17 ▼10.3641.24 ▼0.85
Posts /wp-admin/edit.php2,110 ▲101.94 ▼0.0336.42 ▼2.9636.11 ▲1.48
Add New Post /wp-admin/post-new.php1,532 ▲423.27 ▲0.02681.07 ▲40.9362.87 ▲6.17
Media Library /wp-admin/upload.php1,406 ▲124.26 ▲0.0297.30 ▼1.8743.10 ▼3.16

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mmt-eventon-reports-lite/includes/admin/admin-settings-page.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mmt-eventon-reports-lite/mmt-eventon-reports-lite.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mmt-eventon-reports-lite/includes/admin/class-mmt-eo-reports-admin-ajax.php:18

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 93% 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:
  • Screenshots: Please add an image for screenshot #1 (Reports Settings)
You can look at the official readme.txt

mmt-eventon-reports-lite/mmt-eventon-reports-lite.php 92% from 13 tests

This is the main PHP file of "EventON Report" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin918 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP646151543
CSS213228
JavaScript2117147

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.40
▷ Minimum class complexity3.00
▷ Maximum class complexity45.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin