83% mycred-for-events-manager-pro

Code Review | myCred for Events Manager Pro

WordPress plugin myCred for Events Manager Pro scored83%from 54 tests.

About plugin

  • Plugin page: mycred-for-events...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2020
  • Latest release: Nov 7, 2023
  • Number of updates: 28
  • Update frequency: every 49.7 days
  • Top authors: wpexpertsio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,917 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.62ms] Passed 4 tests

A check of server-side resources used by myCred for Events Manager Pro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.57 ▼6.26
Dashboard /wp-admin3.35 ▲0.0545.79 ▼6.66
Posts /wp-admin/edit.php3.47 ▲0.1144.20 ▼6.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.80 ▼11.42
Media Library /wp-admin/upload.php3.28 ▲0.0434.43 ▲0.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for myCred for Events Manager Pro
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.27 ▼0.072.07 ▲0.2739.14 ▼7.51
Dashboard /wp-admin2,195 ▲155.51 ▼0.1184.04 ▼15.7341.34 ▼4.22
Posts /wp-admin/edit.php2,103 ▲32.03 ▼0.0834.12 ▼7.1230.93 ▼4.43
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▼0.33680.94 ▼9.4853.44 ▲0.49
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0597.61 ▼0.7541.59 ▼0.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mycred-for-events-manager-pro/mycred-events-manager.php:97

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

mycred-for-events-manager-pro/mycred-events-manager.php 77% from 13 tests

"myCred for Events Manager Pro" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mycred-for-events-manager-pro.php" instead of "mycred-events-manager.php")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WP 4.0")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3372267760
PO File16363158

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.27
Average class complexity49.50
▷ Minimum class complexity18.00
▷ Maximum class complexity81.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods43
▷ Static methods12.33%
▷ Public methods4297.67%
▷ Protected methods00.00%
▷ Private methods12.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin