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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.99 ▲1.39 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.91 ▼1.43 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 45.60 ▼11.30 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.50 ▼9.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.58 ▼0.07 |
Payfacile /wp-admin/options-general.php?page=payfacile | 3.25 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 13.60 ▼0.78 | 8.29 ▲6.36 | 46.35 ▲4.06 |
Dashboard /wp-admin | 2,225 ▲19 | 5.00 ▲0.14 | 114.63 ▲10.78 | 43.59 ▼4.01 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.99 ▼0.01 | 37.17 ▼4.36 | 32.45 ▼4.45 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.43 ▲5.96 | 668.17 ▼20.46 | 35.58 ▼23.81 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.04 | 103.07 ▼3.36 | 44.96 ▼2.86 |
Payfacile /wp-admin/options-general.php?page=payfacile | 803 | 2.01 | 25.76 | 32.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 293 | 147 | 1,043 |
CSS | 3 | 36 | 15 | 305 |
PO File | 2 | 58 | 62 | 183 |
PHP | 3 | 54 | 65 | 181 |
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 code | 0.19 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/index.png | 15.13KB | 6.91KB | ▼ 54.35% |