Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.92ms] Passed 4 tests
A check of server-side resources used by Phanes Payments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.31 ▼2.54 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.94 ▼6.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.82 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.09 ▼3.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.16 ▼2.90 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Phanes Payments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.16 ▼1.43 | 5.31 ▲3.41 | 41.44 ▼0.19 |
Dashboard /wp-admin | 2,206 ▲28 | 5.80 ▲0.85 | 93.63 ▼13.08 | 39.15 ▼1.16 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▲0.01 | 39.13 ▲0.97 | 35.95 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,514 ▼10 | 17.51 ▼5.76 | 609.17 ▼80.18 | 51.05 ▼17.97 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▼0.04 | 92.89 ▼1.09 | 43.90 ▲2.23 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/phanes-payments/includes/admin/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/phanes-payments/includes/admin/hooks.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/phanes-payments/includes/hooks.php:4
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add a description for screenshot #1 in phanes-payments/assets to your readme.txt
phanes-payments/phanes-payment-gateway.php 85% from 13 tests
The entry point to "Phanes Payments" version 3.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("phanes-payments.php" instead of "phanes-payment-gateway.php")
- Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected762 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 99 | 175 | 470 |
JavaScript | 1 | 20 | 17 | 151 |
CSS | 1 | 4 | 3 | 95 |
Markdown | 1 | 20 | 0 | 45 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 4.12 |
▷ 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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 12 | 80.00% |
▷ Anonymous functions | 3 | 20.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons8_copy_20px.png | 0.40KB | 0.39KB | ▼ 2.46% |
assets/phanes-icon.png | 1.72KB | 0.25KB | ▼ 85.61% |
assets/phuck-icon.png | 1.72KB | 0.50KB | ▼ 70.73% |
assets/where-to-buy-phuck.png | 7.98KB | 2.89KB | ▼ 63.80% |