84% committee-history

Code Review | Committee history

WordPress plugin Committee history scored84%from 54 tests.

About plugin

  • Plugin page: committee-history
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 3, 2018
  • Latest release: Nov 3, 2018
  • Number of updates: 2
  • Update frequency: every 279.0 days
  • Top authors: justinvansteijn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /584 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.90ms] Passed 4 tests

This is a short check of server-side resources used by Committee history
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.33 ▲1.30
Dashboard /wp-admin3.34 ▲0.0350.73 ▲2.53
Posts /wp-admin/edit.php3.39 ▲0.0348.07 ▼1.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.51 ▼12.62
Media Library /wp-admin/upload.php3.26 ▲0.0336.46 ▲0.87
Committee history /wp-admin/options-general.php?page=committee_history3.2333.76

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Committee history: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.101.90 ▼0.0142.68 ▼5.38
Dashboard /wp-admin2,213 ▲224.84 ▼1.0795.83 ▼14.3738.56 ▼1.42
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0133.36 ▼7.5531.77 ▼2.82
Add New Post /wp-admin/post-new.php1,517 ▼2023.44 ▲0.12676.03 ▼52.8153.67 ▲1.04
Media Library /wp-admin/upload.php1,392 ▲104.18 ▲0.0395.56 ▼3.0642.18 ▼0.74
Committee history /wp-admin/options-general.php?page=committee_history9212.0422.3028.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/committee-history/committee-history.php

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 96% from 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
5 plugin tags: committee, club, board, association, history

committee-history/committee-history.php 92% from 13 tests

"Committee history" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 227 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin336 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP411080336

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.00
▷ Minimum class complexity4.00
▷ Maximum class complexity13.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods753.85%
▷ Protected methods00.00%
▷ Private methods646.15%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin