89% event-espresso-smooth-integration

Code Review | Event Espresso Smooth Integration

WordPress plugin Event Espresso Smooth Integration scored89%from 54 tests.

About plugin

  • Plugin page: event-espresso-sm...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.2.1
  • WordPress version: 6.3.1
  • First release: May 2, 2015
  • Latest release: May 2, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Kenshino (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,975 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.75ms] Passed 4 tests

This is a short check of server-side resources used by Event Espresso Smooth Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.29 ▼5.12
Dashboard /wp-admin3.32 ▲0.0250.65 ▼1.73
Posts /wp-admin/edit.php3.37 ▲0.0247.83 ▼1.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.17 ▼14.15
Media Library /wp-admin/upload.php3.25 ▲0.0236.88 ▼0.57

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
event-espresso-smooth-integration-version
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Event Espresso Smooth Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.061.79 ▼0.1743.75 ▼2.31
Dashboard /wp-admin2,195 ▲215.61 ▲0.0496.64 ▲3.4843.18 ▲1.54
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0135.04 ▼6.0834.00 ▼0.81
Add New Post /wp-admin/post-new.php1,531 ▼423.39 ▲5.05682.50 ▲58.4659.52 ▼10.68
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.13100.47 ▲0.8245.07 ▼4.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • event-espresso-smooth-integration-version
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: event espresso, eventespresso, gravityforms, wordpress seo, seo

event-espresso-smooth-integration/event-espresso-smooth-integration.php 77% from 13 tests

The entry point to "Event Espresso Smooth Integration" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "4.0.0")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
Good job! No executable or dangerous file extensions detected67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11314967

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin