Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.16ms] Passed 4 tests
Server-side resources used by Freedom Pay
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.41 ▼3.35 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.94 ▼16.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.24 ▼4.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.51 ▼15.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.30 ▲1.51 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Freedom Pay
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.72 ▼0.58 | 2.01 ▲0.15 | 44.20 ▲0.57 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▲0.04 | 109.15 ▼7.15 | 45.07 ▲1.08 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.01 | 39.18 ▼0.67 | 34.62 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 23.41 ▲0.09 | 682.51 ▲7.50 | 62.75 ▼8.45 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.25 ▲0.04 | 105.76 ▲4.93 | 47.22 ▲6.11 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/freedompay-payment-gateway/freedompay/includes/class-wc-freedompay-payment-gateway.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
No tags were found
freedompay-payment-gateway/freedompay-payment-gateway.php 92% from 13 tests
The main file in "Freedom Pay" v. 1.9.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("7.4" instead of "2.6")
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
Everything looks great! No dangerous files found in this plugin1,020 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 169 | 365 | 1,020 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 97.00 |
▷ Minimum class complexity | 97.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 34 | 73.91% |
▷ Protected methods | 9 | 19.57% |
▷ Private methods | 3 | 6.52% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 28 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freedompay/assets/images/icon.png | 5.22KB | 2.48KB | ▼ 52.50% |