Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.11ms] Passed 4 tests
This is a short check of server-side resources used by Foloosi Payments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.89 ▲0.51 |
Dashboard /wp-admin | 3.31 ▲0.01 | 62.67 ▲8.48 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 54.31 ▲4.82 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.11 ▼11.33 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.23 ▲1.56 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Foloosi Payments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.45 ▲0.10 | 1.73 ▲0.02 | 44.30 ▲1.06 |
Dashboard /wp-admin | 2,192 ▲15 | 5.65 ▼0.01 | 95.39 ▲1.85 | 43.18 ▲2.48 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.02 | 33.71 ▼4.03 | 35.70 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.54 ▲0.32 | 670.80 ▲0.91 | 59.94 ▲7.89 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▼0.05 | 98.45 ▼4.41 | 44.54 ▼0.50 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: payments, foloosi, uae, card
foloosi-for-woocommerce/foloosi-payments.php 92% from 13 tests
The main PHP script in "Foloosi Payments" version 1.2.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("foloosi-for-woocommerce.php" instead of "foloosi-payments.php")
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
No dangerous file extensions were detected583 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 38 | 96 | 549 |
JavaScript | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 56.52% |
▷ Protected methods | 7 | 30.43% |
▷ Private methods | 3 | 13.04% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected