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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼143.76ms] Passed 4 tests
A check of server-side resources used by Covid Hospitals BD
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.10 | 30.90 ▼5.12 |
Dashboard /wp-admin | 3.12 ▲0.06 | 44.82 ▼3.45 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 46.67 ▲5.43 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 94.93 ▼562.59 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 32.34 ▼3.86 |
Server storage [IO: ▲3.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 2 new options
New WordPress options |
---|
covid_hospitals_bd_installed |
covid_hospitals_bd_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Covid Hospitals BD
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,818 ▲222 | 16.46 ▲0.74 | 17.76 ▲9.31 | 60.47 ▲8.33 |
Dashboard /wp-admin | 2,967 ▲33 | 5.88 ▼0.13 | 142.57 ▼2.11 | 120.19 ▲3.47 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.01 | 61.97 ▲2.01 | 91.90 ▲3.86 |
Add New Post /wp-admin/post-new.php | 1,683 ▼206 | 18.77 ▼0.29 | 371.60 ▲8.15 | 107.25 ▼5.93 |
Media Library /wp-admin/upload.php | 1,807 ▲3 | 5.02 ▼0.03 | 149.65 ▲0.58 | 116.00 ▼9.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 options in the database
- covid_hospitals_bd_version
- covid_hospitals_bd_installed
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant C19H_INC_DIR - assumed 'C19H_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/covid-hospitals-bd/includes/templates/c19h_single.php on line 16
- > PHP Warning
Use of undefined constant C19H_INC_DIR - assumed 'C19H_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/covid-hospitals-bd/includes/templates/c19h_details.php on line 16
- > PHP Warning
require_once(C19H_INC_DIR/templates/c19h_search_form.php): failed to open stream: No such file or directory in wp-content/plugins/covid-hospitals-bd/includes/templates/c19h_details.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/covid-hospitals-bd/includes/templates/c19h_search_form.php:15
- > PHP Warning
require_once(C19H_INC_DIR/templates/c19h_search_form.php): failed to open stream: No such file or directory in wp-content/plugins/covid-hospitals-bd/includes/templates/c19h_single.php on line 16
- > PHP Fatal error
require_once(): Failed opening required 'C19H_INC_DIR/templates/c19h_search_form.php' (include_path='.:/usr/share/php') in wp-content/plugins/covid-hospitals-bd/includes/templates/c19h_details.php on line 16
- > PHP Fatal error
require_once(): Failed opening required 'C19H_INC_DIR/templates/c19h_search_form.php' (include_path='.:/usr/share/php') in wp-content/plugins/covid-hospitals-bd/includes/templates/c19h_single.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/covid-hospitals-bd/includes/templates/c19h_home.php:16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Home), #2 (Available Beds), #3 (Hospital details), #4 (Oxygen information)
covid-hospitals-bd/covid-hospitals-bd.php 92% from 13 tests
This is the main PHP file of "Covid Hospitals BD" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected21,980 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 1,468 | 45 | 13,039 |
JavaScript | 5 | 2,043 | 1,715 | 7,832 |
PHP | 19 | 249 | 398 | 1,083 |
JSON | 2 | 0 | 0 | 25 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 49 | |
▷ Static methods | 16 | 32.65% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.08% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.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 were not PNG files found in your plugin