84% mycred-amelia

Code Review | myCred Amelia - Gamification with Events & Appointments Booking

WordPress plugin myCred Amelia - Gamification with Events & Appointments Booking scored84%from 54 tests.

About plugin

  • Plugin page: mycred-amelia
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.8-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 13, 2020
  • Latest release: Nov 7, 2023
  • Number of updates: 27
  • Update frequency: every 40.3 days
  • Top authors: wpexpertsio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /3,763 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.31MB] [CPU: ▼13.94ms] Passed 4 tests

Server-side resources used by myCred Amelia - Gamification with Events & Appointments Booking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0135.11 ▼5.83
Dashboard /wp-admin3.33 ▲0.0248.31 ▼0.89
Posts /wp-admin/edit.php3.38 ▲0.0246.74 ▼0.53
Add New Post /wp-admin/post-new.php4.62 ▼1.2742.50 ▼48.49
Media Library /wp-admin/upload.php3.25 ▲0.0238.44 ▲4.56

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for myCred Amelia - Gamification with Events & Appointments Booking
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,675 ▼8714.70 ▲0.341.19 ▼0.4523.15 ▼20.77
Dashboard /wp-admin2,195 ▲185.60 ▼0.0888.80 ▼4.0938.62 ▼3.42
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0134.79 ▼1.7334.12 ▼5.28
Add New Post /wp-admin/post-new.php45 ▼1,4810.41 ▼22.360.12 ▼660.1611.58 ▼42.54
Media Library /wp-admin/upload.php1,394 ▲34.18 ▼0.1496.10 ▼4.2067.53 ▲22.28

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/mycred-amelia/mycred-amelia.php:14

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 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
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in mycred-amelia/assets to your readme.txt
You can take inspiration from this readme.txt

mycred-amelia/mycred-amelia.php 92% from 13 tests

The principal PHP file in "myCred Amelia - Gamification with Events & Appointments Booking" v. 1.1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WP 4.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin195 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26415195

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 are no PNG files in this plugin