Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.65ms] Passed 4 tests
Analyzing server-side resources used by Feesable Fee Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.40 ▼3.98 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.77 ▼1.57 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 48.56 ▲2.27 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.54 ▼6.70 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.62 ▲1.67 |
Feesable /wp-admin/options-general.php?page=feesable-fee-calculator-settings | 3.25 | 32.95 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Feesable Fee Calculator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 15.45 ▲0.87 | 1.73 ▲0.10 | 41.54 ▼6.27 |
Dashboard /wp-admin | 2,219 ▲31 | 6.18 ▲0.27 | 141.29 ▲32.53 | 43.38 ▼1.04 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 3.41 ▲1.38 | 87.15 ▲46.95 | 37.09 ▲1.91 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 24.29 ▲1.14 | 662.53 ▲10.56 | 63.04 ▲0.23 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 5.14 ▲0.94 | 130.33 ▲33.20 | 43.34 ▲1.52 |
Feesable /wp-admin/options-general.php?page=feesable-fee-calculator-settings | 967 | 3.22 | 73.17 | 36.94 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/feesable-fee-calculator/public/partials/feesable-fee-calculator-public-display.php
- > /wp-content/plugins/feesable-fee-calculator/admin/partials/feesable-fee-calculator-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== feesable-fee-calculator ===
)
feesable-fee-calculator/feesable-fee-calculator.php Passed 13 tests
"Feesable Fee Calculator" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
Display the Feesable Fee Calculator on your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin364 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 89 | 430 | 357 |
JavaScript | 2 | 2 | 27 | 7 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 4 | 16.67% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin