Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.64MB] [CPU: ▼14.89ms] Passed 4 tests
This is a short check of server-side resources used by Institute Notice
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.61 ▼1.18 |
Dashboard /wp-admin | 3.37 ▲0.07 | 57.71 ▲7.89 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 54.25 ▲4.76 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.75 | 35.92 ▼66.97 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.88 ▲3.83 |
All Notices /wp-admin/edit.php?post_type=institute_notice | 3.35 | 41.75 |
Add New /wp-admin/post-new.php?post_type=institute_notice | 3.14 | 33.84 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Institute Notice
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲225 | 15.01 ▲0.81 | 1.81 ▲0.10 | 45.29 ▲3.42 |
Dashboard /wp-admin | 2,372 ▲184 | 6.43 ▲1.51 | 124.27 ▲18.26 | 38.28 ▼8.68 |
Posts /wp-admin/edit.php | 2,284 ▲195 | 3.44 ▲1.43 | 49.50 ▲9.70 | 30.99 ▼5.54 |
Add New Post /wp-admin/post-new.php | 1,553 ▲34 | 23.02 ▼0.13 | 613.20 ▼70.66 | 40.02 ▼15.97 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.08 ▼0.22 | 81.08 ▼25.70 | 47.98 ▼0.40 |
All Notices /wp-admin/edit.php?post_type=institute_notice | 1,253 | 3.36 | 45.31 | 27.61 |
Add New /wp-admin/post-new.php?post_type=institute_notice | 1,637 | 3.75 | 61.95 | 32.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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=institute_notice
- > Notice in wp-content/plugins/institute-notice/initial.php+120
Undefined index: download_btn_text
- > GET request to /wp-admin/post-new.php?post_type=institute_notice
- > Notice in wp-content/plugins/institute-notice/initial.php+121
Undefined index: notice_file_link
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/institute-notice/initial.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in institute-notice/assets to your readme.txt
institute-notice/initial.php 85% from 13 tests
The main PHP script in "Institute Notice" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("institute-notice.php" instead of "initial.php")
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
There were no executable files found in this plugin190 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 25 | 30 | 137 |
CSS | 1 | 1 | 0 | 34 |
JavaScript | 1 | 2 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected