84% wp-easy-fibos-pay

Code Review | Easy FIBOS pay

WordPress plugin Easy FIBOS pay scored84%from 54 tests.

About plugin

  • Plugin page: wp-easy-fibos-pay
  • Plugin version: 0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-4.7
  • WordPress version: 6.3.1
  • First release: Feb 18, 2020
  • Latest release: Feb 20, 2020
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: easychen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /457 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.44ms] Passed 4 tests

Server-side resources used by Easy FIBOS pay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.56 ▼5.15
Dashboard /wp-admin3.36 ▲0.0548.69 ▲0.49
Posts /wp-admin/edit.php3.41 ▲0.0548.14 ▼3.93
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.49 ▲2.83
Media Library /wp-admin/upload.php3.28 ▲0.0536.14 ▲2.84
Fo支付设置 /wp-admin/options-general.php?page=_foez_pay_settings3.2429.83

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy FIBOS pay
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.29 ▼1.271.65 ▼0.0243.90 ▼1.95
Dashboard /wp-admin2,210 ▲225.02 ▼0.83110.25 ▲2.2243.12 ▼0.22
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0140.22 ▲2.4339.03 ▲7.62
Add New Post /wp-admin/post-new.php1,539 ▲323.50 ▲0.07645.02 ▼60.3350.64 ▼6.88
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0195.74 ▼10.1446.21 ▲2.89
Fo支付设置 /wp-admin/options-general.php?page=_foez_pay_settings7882.0624.9568.64

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-fibos-pay/wp-easy-fibos-pay.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: payment

wp-easy-fibos-pay/wp-easy-fibos-pay.php 92% from 13 tests

The principal PHP file in "Easy FIBOS pay" v. 0.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "5.1")

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 detected273 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1105111273

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1178.57%
▷ Anonymous functions321.43%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.68MB with 0.47MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png87.37KB30.22KB▼ 65.42%
assets/screenshot-1.png68.94KB23.70KB▼ 65.63%
assets/screenshot-2.png540.74KB126.28KB▼ 76.65%