90% eber

Code Review | Eber

WordPress plugin Eber scored90%from 54 tests.

About plugin

  • Plugin page: eber
  • Plugin version: 3.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2016
  • Latest release: Nov 28, 2023
  • Number of updates: 49
  • Update frequency: every 52.2 days
  • Top authors: eberwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /7,061 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.12MB] [CPU: ▼2.37ms] Passed 4 tests

Analyzing server-side resources used by Eber
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1438.74 ▼0.84
Dashboard /wp-admin3.42 ▲0.1246.97 ▼0.28
Posts /wp-admin/edit.php3.47 ▲0.1147.96 ▲1.08
Add New Post /wp-admin/post-new.php6.00 ▲0.1291.25 ▼9.44
Media Library /wp-admin/upload.php3.34 ▲0.1135.02 ▲2.44

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Eber
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5514.67 ▲0.061.67 ▼0.1136.50 ▼7.42
Dashboard /wp-admin2,210 ▲335.61 ▼0.0493.00 ▼8.1039.95 ▼5.22
Posts /wp-admin/edit.php2,112 ▲122.03 ▲0.0739.26 ▼1.2034.69 ▼1.60
Add New Post /wp-admin/post-new.php1,547 ▲2125.18 ▲1.96585.73 ▼23.8467.48 ▲20.21
Media Library /wp-admin/upload.php1,415 ▲154.22 ▲0.0196.16 ▼13.7843.39 ▲0.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • eber_hash_key

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: loyalty, points system, member card, reward, membership...

eber/index.php 92% from 13 tests

The main PHP script in "Eber" version 3.3.1 is automatically included on every request by 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 ("eber.php" instead of "index.php")

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
No dangerous file extensions were detected1,074 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9131571,074

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity19.50
▷ Minimum class complexity2.00
▷ Maximum class complexity36.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods30
▷ Static methods1240.00%
▷ Public methods2996.67%
▷ Protected methods00.00%
▷ Private methods13.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.37MB with 0.26MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png20.94KB0.85KB▼ 95.95%
assets/screenshot-1.PNG27.77KB11.28KB▼ 59.39%
assets/images/logo.png9.24KB4.72KB▼ 48.98%
assets/screenshot-2.PNG319.61KB82.30KB▼ 74.25%