90% board-election

Code Review | Board Election

WordPress plugin Board Election scored90%from 54 tests.

About plugin

  • Plugin page: board-election
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Nov 13, 2015
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: casiepa (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,461 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.44ms] Passed 4 tests

An overview of server-side resources used by Board Election
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0940.63 ▼1.48
Dashboard /wp-admin3.40 ▲0.0545.68 ▼15.74
Posts /wp-admin/edit.php3.45 ▲0.0950.23 ▲2.92
Add New Post /wp-admin/post-new.php5.98 ▲0.0997.57 ▼6.28
Media Library /wp-admin/upload.php3.32 ▲0.0937.61 ▲1.76
Board Election /wp-admin/options-general.php?page=board_election3.2933.83

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Board Election
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.55 ▲0.061.80 ▲0.0146.95 ▲4.97
Dashboard /wp-admin2,199 ▲225.65 ▲0.0691.07 ▲0.4741.19 ▲1.36
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0238.69 ▲3.5935.31 ▼0.18
Add New Post /wp-admin/post-new.php1,418 ▼10821.12 ▼2.61578.41 ▼73.3955.16 ▲2.29
Media Library /wp-admin/upload.php1,407 ▲74.25 ▼0.0397.92 ▼5.6942.75 ▲0.21
Board Election /wp-admin/options-general.php?page=board_election1,3132.0024.5031.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 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
4 plugin tags: election, management board, elections, board

board-election/board-election.php Passed 13 tests

This is the main PHP file of "Board Election" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Allow registered users to elect board members

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
Everything looks great! No dangerous files found in this plugin646 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16631426
PO File27071220

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin