84% devllo-events-pmpro

Code Review | PMPro Integration for Devllo Events

WordPress plugin PMPro Integration for Devllo Events scored84%from 54 tests.

About plugin

  • Plugin page: devllo-events-pmpro
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7
  • WordPress version: 6.3.1
  • First release: Sep 18, 2020
  • Latest release: Mar 17, 2021
  • Number of updates: 5
  • Update frequency: every 36.0 days
  • Top authors: devlloplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /439 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by PMPro Integration for Devllo Events
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.37 ▼1.32
Dashboard /wp-admin3.31 ▼0.0448.56 ▼17.03
Posts /wp-admin/edit.php3.36 ▲0.0048.62 ▲1.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.81 ▼18.08
Media Library /wp-admin/upload.php3.23 ▲0.0036.56 ▲2.42

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

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

Browser metrics Passed 4 tests

A check of browser resources used by PMPro Integration for Devllo Events
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.21 ▼0.071.59 ▲0.0339.62 ▼4.49
Dashboard /wp-admin2,203 ▲325.57 ▼0.0283.52 ▼1.6541.03 ▲1.60
Posts /wp-admin/edit.php2,111 ▲111.99 ▲0.0340.17 ▲5.1139.16 ▼0.10
Add New Post /wp-admin/post-new.php1,532 ▼323.68 ▲5.49684.67 ▲73.2947.90 ▼33.03
Media Library /wp-admin/upload.php1,411 ▲114.21 ▲0.0199.57 ▼7.8044.75 ▼0.84

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 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devllo-events-pmpro/inc/devllo-events-pmpro-admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/devllo-events-pmpro/devllo-events-pmpro.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: event, events, fullcalendar, calendar, pmpro...

devllo-events-pmpro/devllo-events-pmpro.php 92% from 13 tests

"PMPro Integration for Devllo Events" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

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
No dangerous file extensions were detected121 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24524115
CSS1106

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin