79% epoi-wp-points-and-rewards

Code Review | EPOI - WP Points and Rewards

WordPress plugin EPOI - WP Points and Rewards scored79%from 54 tests.

About plugin

  • Plugin page: epoi-wp-points-an...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2022
  • Latest release: Feb 22, 2023
  • Number of updates: 13
  • Update frequency: every 27.9 days
  • Top authors: thanhtd (76.92%)villatheme (30.77%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /857 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.57MB] [CPU: ▲2.53ms] 75% from 4 tests

Analyzing server-side resources used by EPOI - WP Points and Rewards
The following require your attention
  • CPU: Total CPU usage should be kept under 500.00ms (currently 675.42ms on /wp-admin/admin.php?page=epoi-settings)
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.71 ▲4.01
Dashboard /wp-admin4.07 ▲0.7655.51 ▲9.66
Posts /wp-admin/edit.php4.13 ▲0.7853.60 ▲3.88
Add New Post /wp-admin/post-new.php6.59 ▲0.7089.56 ▼7.06
Media Library /wp-admin/upload.php3.93 ▲0.7044.25 ▲9.28
Settings /wp-admin/admin.php?page=epoi-settings4.24675.42
Point records /wp-admin/admin.php?page=epoi-records3.9140.00
Extensions /wp-admin/admin.php?page=epoi-wp-points-and-rewards-extensions3.9141.95
User's points /wp-admin/admin.php?page=epoi4.0045.82

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 120 new files
Database: 1 new table, 7 new options
New tables
wp_epoi_point_reward_system
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
epoi-wp-points-and-rewards_start_use

Browser metrics Passed 4 tests

Checking browser requirements for EPOI - WP Points and Rewards
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲8313.64 ▼1.042.11 ▲0.1340.59 ▲1.24
Dashboard /wp-admin2,260 ▲694.95 ▲0.05102.70 ▲2.0841.47 ▼0.17
Posts /wp-admin/edit.php2,148 ▲592.03 ▼0.0235.96 ▼3.9433.08 ▼2.81
Add New Post /wp-admin/post-new.php1,569 ▲2723.24 ▲4.99658.48 ▲11.0052.36 ▼2.72
Media Library /wp-admin/upload.php1,442 ▲574.21 ▲0.0597.86 ▼1.8346.11 ▲2.27
Settings /wp-admin/admin.php?page=epoi-settings1,9984.5699.13115.29
Point records /wp-admin/admin.php?page=epoi-records1,0672.0424.1429.97
Extensions /wp-admin/admin.php?page=epoi-wp-points-and-rewards-extensions1,7562.0229.8464.64
User's points /wp-admin/admin.php?page=epoi1,2481.6926.4631.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_epoi_point_reward_system
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • epoi-wp-points-and-rewards_start_use

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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
These attributes need your attention: The official readme.txt might help

epoi-wp-points-and-rewards/epoi-wp-points-and-rewards.php Passed 13 tests

The primary PHP file in "EPOI - WP Points and Rewards" version 1.0.6 is used by WordPress to initiate all plugin functionality
111 characters long description:
Reward users with points. You can create a better user-experience environment with a Points and Rewards system.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin11,602 lines of code in 98 files:
LanguageFilesBlank linesComment linesLines of code
PHP341,2081504,911
SVG30123,809
CSS381492041,510
Sass5192191,046
JavaScript18656326

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity26.14
▷ Minimum class complexity2.00
▷ Maximum class complexity108.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods231
▷ Static methods4820.78%
▷ Public methods20588.74%
▷ Protected methods2410.39%
▷ Private methods20.87%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin