84% mycred-zoom-rewards

Code Review | myCred Zoom Rewards

WordPress plugin myCred Zoom Rewards scored84%from 54 tests.

About plugin

  • Plugin page: mycred-zoom-rewards
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 6.3.1
  • First release: Nov 3, 2020
  • Latest release: May 18, 2023
  • Number of updates: 19
  • Update frequency: every 48.7 days
  • Top authors: wpexpertsio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,511 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 successfully, without throwing any errors or notices

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

Server-side resources used by myCred Zoom Rewards
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.98 ▼4.63
Dashboard /wp-admin3.33 ▲0.0241.84 ▼7.62
Posts /wp-admin/edit.php3.38 ▲0.0245.87 ▼2.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.85 ▼13.87
Media Library /wp-admin/upload.php3.25 ▲0.0233.67 ▼0.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for myCred Zoom Rewards
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.30 ▼0.251.63 ▼0.2236.20 ▼11.46
Dashboard /wp-admin2,205 ▲285.64 ▼0.0394.79 ▼3.0643.12 ▲0.22
Posts /wp-admin/edit.php2,110 ▲101.97 ▼0.0539.25 ▲3.0937.17 ▲1.81
Add New Post /wp-admin/post-new.php1,536 ▲823.07 ▼0.22659.57 ▼0.9369.25 ▲11.45
Media Library /wp-admin/upload.php1,413 ▲164.19 ▲0.0994.13 ▼12.9641.79 ▼8.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at 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_path() in wp-content/plugins/mycred-zoom-rewards/mycred-zoom-rewards.php:73

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tested up to: Invalid plugin version format
The official readme.txt is a good inspiration

mycred-zoom-rewards/mycred-zoom-rewards.php 92% from 13 tests

The main PHP file in "myCred Zoom Rewards" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 257 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin456 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP386100397
JavaScript212547
CSS13012

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity26.00
▷ Minimum class complexity7.00
▷ Maximum class complexity45.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods2086.96%
▷ Protected methods00.00%
▷ Private methods313.04%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin