Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▲2.36ms] Passed 4 tests
Analyzing server-side resources used by Nonprofit Board Management
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 51.63 ▲7.40 |
Dashboard /wp-admin | 3.87 ▲0.56 | 53.19 ▲3.55 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 51.08 ▲3.38 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 96.44 ▼4.91 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 44.03 ▲9.73 |
Board Resources /wp-admin/admin.php?page=nonprofit-board/resources | 3.68 | 34.92 |
Board Committees /wp-admin/edit.php?post_type=board_committees | 3.82 | 41.27 |
Board Members /wp-admin/admin.php?page=nonprofit-board | 3.68 | 33.08 |
Board Events /wp-admin/edit.php?post_type=board_events | 3.83 | 38.43 |
Add Board Event /wp-admin/post-new.php?post_type=board_events | 3.75 | 45.52 |
Edit Your Board Resources /wp-admin/options.php?page=nonprofit-board/resources/edit | 3.79 | 48.06 |
Add Board Committee /wp-admin/post-new.php?post_type=board_committees | 3.75 | 46.07 |
Support /wp-admin/admin.php?page=nonprofit-board/support | 3.68 | 34.40 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_board_rsvps |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
board_rsvp_db_version |
widget_recent-posts |
Browser metrics 50% from 4 tests
Nonprofit Board Management: an overview of browser usage
Having an awesome user experience is important, so please improve the following
- Memory: You must limit browser memory usage to 75.00MB (currently 81.53MB on /wp-admin/admin.php?page=nonprofit-board/support)
- Script duration: Total JavaScript execution time should be lower than 1,500.00ms (currently 2,046.31ms on /wp-admin/admin.php?page=nonprofit-board/support)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲283 | 13.57 ▼0.74 | 1.84 ▼0.15 | 45.22 ▼1.43 |
Dashboard /wp-admin | 2,421 ▲230 | 5.22 ▲0.36 | 100.88 ▼4.05 | 40.96 ▲0.61 |
Posts /wp-admin/edit.php | 2,211 ▲122 | 2.34 ▲0.29 | 39.71 ▼0.37 | 33.80 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,574 ▲37 | 18.42 ▲0.25 | 652.08 ▼2.70 | 62.52 ▲5.13 |
Media Library /wp-admin/upload.php | 1,506 ▲121 | 4.47 ▲0.22 | 105.03 ▲4.96 | 46.34 ▲2.09 |
Board Resources /wp-admin/admin.php?page=nonprofit-board/resources | 959 | 1.95 | 30.11 | 28.62 |
Board Committees /wp-admin/edit.php?post_type=board_committees | 1,178 | 2.29 | 32.34 | 30.26 |
Board Members /wp-admin/admin.php?page=nonprofit-board | 986 | 1.89 | 27.38 | 27.72 |
Board Events /wp-admin/edit.php?post_type=board_events | 1,218 | 2.31 | 34.14 | 30.63 |
Add Board Event /wp-admin/post-new.php?post_type=board_events | 1,618 | 2.82 | 52.48 | 52.85 |
Edit Your Board Resources /wp-admin/options.php?page=nonprofit-board/resources/edit | 1,557 | 6.35 | 114.28 | 50.71 |
Add Board Committee /wp-admin/post-new.php?post_type=board_committees | 1,585 | 2.79 | 50.88 | 45.38 |
Support /wp-admin/admin.php?page=nonprofit-board/support | 6,676 | 81.53 | 2,046.31 | 30.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_board_rsvps
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- board_rsvp_db_version
Smoke tests 50% 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 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nonprofit-board-management/templates/list-board-members.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/nonprofit-board-management/templates/list-board-members.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/nonprofit-board-management/nonprofit-board-management.php:1070
- > PHP Notice
Undefined variable: board_members in wp-content/plugins/nonprofit-board-management/templates/list-board-members.php on line 20
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 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
7 plugin tags: board governance, boards, non-profits, directors, 501c3...
nonprofit-board-management/nonprofit-board-management.php Passed 13 tests
The main PHP file in "Nonprofit Board Management" ver. 1.1.19 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
A simple, free way to manage your nonprofit’s board.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,895 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 529 | 854 | 1,761 |
JavaScript | 2 | 214 | 284 | 1,599 |
CSS | 2 | 56 | 80 | 535 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 79.33 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 1 | 1.06% |
▷ Public methods | 77 | 81.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 18.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 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
15 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/nonprofit-board-gavel.png | 2.27KB | 1.56KB | ▼ 31.05% |
css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |