84% nonprofit-board-management-files

Code Review | Nonprofit Board Management Files

WordPress plugin Nonprofit Board Management Files scored84%from 54 tests.

About plugin

  • Plugin page: nonprofit-board-m...
  • Plugin version: 0.0.64
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.8
  • WordPress version: 6.3.1
  • First release: Jul 29, 2017
  • Latest release: Jul 31, 2017
  • Number of updates: 25
  • Update frequency: every 0.1 days
  • Top authors: mflynn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.58MB] [CPU: ▲1.57ms] Passed 4 tests

This is a short check of server-side resources used by Nonprofit Board Management Files
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5844.26 ▲2.25
Dashboard /wp-admin3.91 ▲0.6060.29 ▲10.23
Posts /wp-admin/edit.php3.96 ▲0.6059.25 ▲5.22
Add New Post /wp-admin/post-new.php6.47 ▲0.58102.46 ▼9.66
Media Library /wp-admin/upload.php3.81 ▲0.5843.70 ▲8.47

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Nonprofit Board Management Files
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲16914.55 ▼0.111.68 ▲0.0143.77 ▲2.87
Dashboard /wp-admin2,336 ▲1566.22 ▲0.56119.66 ▲27.1241.85 ▼1.99
Posts /wp-admin/edit.php2,267 ▲1673.65 ▲1.7054.46 ▲13.6435.42 ▲0.00
Add New Post /wp-admin/post-new.php1,530 ▲223.23 ▲0.01650.26 ▼4.4538.00 ▼21.43
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.0579.47 ▼24.3444.56 ▼0.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PluginFramework\\V_1_1\\Core' not found in wp-content/plugins/nonprofit-board-management-files/plugin.class.php:3
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/nonprofit-board-management-files/plugin.class.php on line 9
    • > PHP Fatal error
      Trait 'PluginFramework\\V_1_1\\PluginInfo' not found in wp-content/plugins/nonprofit-board-management-files/framework/core.class.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/nonprofit-board-management-files/plugin.class.php:11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nonprofit-board-management-files/plugin.class.php on line 9
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/nonprofit-board-management-files/plugin.class.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

nonprofit-board-management-files/nonprofit-board-management-files.php Passed 13 tests

The principal PHP file in "Nonprofit Board Management Files" v. 0.0.64 is loaded by WordPress automatically on each request
92 characters long description:
Adds Agenda and Minutes to meetings, adds shortcode to display meetings with file downloads.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,611 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP232194122,514
Mustache54059
JavaScript451836
Sass1102

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.02
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces2
Interfaces5
Traits13
Classes27
▷ Abstract classes414.81%
▷ Concrete classes2385.19%
▷ Final classes00.00%
Methods255
▷ Static methods41.57%
▷ Public methods18672.94%
▷ Protected methods3112.16%
▷ Private methods3814.90%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants62
▷ Global constants00.00%
▷ Class constants62100.00%
▷ Public constants62100.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
PNG images were not found in this plugin