Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼313.79ms] Passed 4 tests
A check of server-side resources used by ActBlue Contributions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 54.69 ▲5.41 |
Dashboard /wp-admin | 3.42 ▲0.02 | 33.21 ▲0.59 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.42 ▼0.05 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 93.03 ▼1,255.22 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 22.90 ▼0.49 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for ActBlue Contributions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲47 | 15.97 ▲0.06 | 10.27 ▲3.87 | 2.61 ▲0.05 |
Dashboard /wp-admin | 2,895 ▲37 | 6.18 ▼0.02 | 116.25 ▼26.10 | 156.42 ▼12.94 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.25 ▲0.01 | 62.33 ▲0.42 | 139.62 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,665 ▲4 | 16.86 ▲1.31 | 400.48 ▼23.61 | 155.13 ▼2.08 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.55 ▲0.04 | 140.62 ▼1.74 | 186.10 ▼2.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/actblue-contributions/admin/templates/actblue-settings-page.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: nonprofit, donation, giving, donate, contribute...
actblue-contributions/actblue-contributions.php 85% from 13 tests
The principal PHP file in "ActBlue Contributions" v. 1.4.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
Good job! No executable or dangerous file extensions detected1,291 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 24 | 133 | 175 | 1,077 |
PHP | 9 | 55 | 376 | 187 |
Sass | 2 | 4 | 1 | 26 |
CSS | 1 | 1 | 0 | 1 |
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.07 |
Average class complexity | 1.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG files were detected