Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.29ms] Passed 4 tests
Server-side resources used by Easy PayPal Gift Certificate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.67 ▼7.13 |
Dashboard /wp-admin | 3.39 ▲0.09 | 50.17 ▼4.20 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 57.68 ▲6.65 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 112.42 ▲2.47 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 42.40 ▼0.31 |
Easy PayPal GC /wp-admin/options-general.php?page=paypal-gift-certificate-settings | 3.28 | 32.81 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
wpppgc_my_plugin_notice_shown |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
wpppgc_settingsoptions |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Easy PayPal Gift Certificate
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.28 ▲0.00 | 2.46 ▲0.78 | 67.14 ▲23.93 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▼0.06 | 90.18 ▼6.10 | 42.00 ▲0.66 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.07 | 40.10 ▼2.66 | 37.56 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,584 ▲56 | 23.51 ▲0.51 | 669.17 ▲58.93 | 50.43 ▼5.16 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.24 ▲0.06 | 104.52 ▲3.43 | 47.79 ▲1.06 |
Easy PayPal GC /wp-admin/options-general.php?page=paypal-gift-certificate-settings | 1,445 | 2.01 | 27.86 | 46.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpppgc_wpppgc::wpppgc_deactivate() should not be called statically
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- wpppgc_settingsoptions
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/paypal-gift-certificate/paypal-gift-certificate.php:105
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: gateway, gift certificate, paypal, gift card
paypal-gift-certificate/paypal-gift-certificate.php Passed 13 tests
Analyzing the main PHP file in "Easy PayPal Gift Certificate" version 1.2.3
81 characters long description:
A simple and easy way to integrate Gift Certificates into your WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected523 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 285 | 40 | 523 |
PHP code Passed 2 tests
Analyzing 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 code | 0.41 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin