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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 40.63 ▼1.48 |
Dashboard /wp-admin | 3.40 ▲0.05 | 45.68 ▼15.74 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.23 ▲2.92 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 97.57 ▼6.28 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.61 ▲1.76 |
Board Election /wp-admin/options-general.php?page=board_election | 3.29 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.55 ▲0.06 | 1.80 ▲0.01 | 46.95 ▲4.97 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▲0.06 | 91.07 ▲0.47 | 41.19 ▲1.36 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.02 | 38.69 ▲3.59 | 35.31 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,418 ▼108 | 21.12 ▼2.61 | 578.41 ▼73.39 | 55.16 ▲2.29 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▼0.03 | 97.92 ▼5.69 | 42.75 ▲0.21 |
Board Election /wp-admin/options-general.php?page=board_election | 1,313 | 2.00 | 24.50 | 31.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 31 | 426 |
PO File | 2 | 70 | 71 | 220 |
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 code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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