100% hopli

Code Review | Hopli

WordPress plugin Hopli scored 100% from 54 tests.

About plugin

  • Plugin page: hopli
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.1-5.8.1
  • WordPress version: 5.9.2
  • First release: Sep 30, 2021
  • Latest release: Sep 30, 2021
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: atorrini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 989 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼294.13ms] Passed 4 tests

A check of server-side resources used by Hopli
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.81 ▲1.25
Dashboard /wp-admin3.43 ▲0.0233.12 ▼1.50
Posts /wp-admin/edit.php3.66 ▲0.0238.19 ▲0.23
Add New Post /wp-admin/post-new.php6.90 ▼0.0797.81 ▼1,167.01
Media Library /wp-admin/upload.php3.31 ▲0.0122.96 ▼8.22
Hopli /wp-admin/options-general.php?page=hopli3.3323.08

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Hopli
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,897 ▲17416.32 ▲0.2615.48 ▲9.143.51 ▲0.98
Dashboard /wp-admin2,921 ▲606.11 ▼0.02119.13 ▼15.50153.90 ▼10.14
Posts /wp-admin/edit.php2,723 ▲293.24 ▲0.0165.68 ▲1.38139.90 ▲4.11
Add New Post /wp-admin/post-new.php1,690 ▼6820.19 ▼1.22398.06 ▼68.14158.53 ▲1.73
Media Library /wp-admin/upload.php1,727 ▲295.51 ▼0.00136.85 ▼5.25181.01 ▼9.55
Hopli /wp-admin/options-general.php?page=hopli1,2745.04114.82127.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: checkout, donate, order-received

hopli/hopli.php Passed 13 tests

"Hopli" version 0.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Allows you to insert the Hopli window to start making donations !

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin227 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP350107227

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected