Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.82ms] Passed 4 tests
Server-side resources used by WordPress Virgin Money Giving
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.99 ▼2.27 |
Dashboard /wp-admin | 3.45 ▲0.14 | 45.87 ▼3.90 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.07 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 86.54 ▼15.21 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.12 ▼0.55 |
Virgin Money Giving /wp-admin/options-general.php?page=virgin-money-giving-settings | 3.34 | 33.18 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_foo_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Virgin Money Giving
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲184 | 13.60 ▼1.02 | 5.53 ▲3.62 | 42.22 ▼2.79 |
Dashboard /wp-admin | 2,220 ▲35 | 4.88 ▼1.02 | 98.38 ▼2.75 | 38.65 ▼4.44 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.04 ▲0.05 | 41.70 ▼3.43 | 35.59 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.49 ▲6.00 | 660.68 ▼36.28 | 57.32 ▲0.07 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.32 ▲0.18 | 97.33 ▼10.82 | 42.39 ▼8.92 |
Virgin Money Giving /wp-admin/options-general.php?page=virgin-money-giving-settings | 876 | 2.04 | 22.82 | 27.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_foo_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-virgin-money-giving/public/partials/wp-virgin-money-giving-public-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-virgin-money-giving/public/partials/test-virgin-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Virgin_Money_Giving_Admin' not found in wp-content/plugins/wp-virgin-money-giving/admin/partials/wp-virgin-money-giving-admin-display.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-virgin-money-giving/includes/class-wp-fundraisers-widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-virgin-money-giving ===
)
wp-virgin-money-giving/wp-virgin-money-giving.php Passed 13 tests
The main PHP script in "WordPress Virgin Money Giving" version 1.1.6 is automatically included on every request by WordPress
92 characters long description:
A plugin that uses the Virgin Money Giving API to feed data in to your website via a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin773 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 316 | 658 | 642 |
CSS | 2 | 15 | 9 | 107 |
JavaScript | 2 | 16 | 60 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 41 | 83.67% |
▷ Protected methods | 3 | 6.12% |
▷ Private methods | 5 | 10.20% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/virgin-money-giving.png | 13.12KB | 4.28KB | ▼ 67.41% |
admin/img/virgin-money-giving.png | 5.07KB | 4.74KB | ▼ 6.51% |