84% payfacile

Code Review | Payfacile

WordPress plugin Payfacile scored84%from 54 tests.

About plugin

  • Plugin page: payfacile
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Jul 27, 2016
  • Latest release: Jul 27, 2016
  • Number of updates: 5
  • Update frequency: every 36.8 days
  • Top authors: tomwersinger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,348 total downloads

Benchmarks

Plugin footprint 83% 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.03MB] [CPU: ▼5.60ms] Passed 4 tests

Analyzing server-side resources used by Payfacile
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.99 ▲1.39
Dashboard /wp-admin3.34 ▲0.0449.91 ▼1.43
Posts /wp-admin/edit.php3.45 ▲0.1045.60 ▼11.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.50 ▼9.61
Media Library /wp-admin/upload.php3.26 ▲0.0434.58 ▼0.07
Payfacile /wp-admin/options-general.php?page=payfacile3.2533.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Payfacile
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17113.60 ▼0.788.29 ▲6.3646.35 ▲4.06
Dashboard /wp-admin2,225 ▲195.00 ▲0.14114.63 ▲10.7843.59 ▼4.01
Posts /wp-admin/edit.php2,107 ▲41.99 ▼0.0137.17 ▼4.3632.45 ▼4.45
Add New Post /wp-admin/post-new.php1,550 ▲2423.43 ▲5.96668.17 ▼20.4635.58 ▼23.81
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.04103.07 ▼3.3644.96 ▼2.86
Payfacile /wp-admin/options-general.php?page=payfacile8032.0125.7632.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/payfacile/inc/settings-template.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
6 plugin tags: paiement, boutique, shop, payfacile, payment...

payfacile/payfacile.php Passed 13 tests

The main PHP script in "Payfacile" version 1.0.1 is automatically included on every request by WordPress
83 characters long description:
Insert customizable Payfacile buttons and widgets into your pages and posts easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,712 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22931471,043
CSS33615305
PO File25862183
PHP35465181

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/index.png15.13KB6.91KB▼ 54.35%