Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼140.54ms] Passed 4 tests
Server-side resources used by Student Inquiry
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.12 | 35.74 ▲2.03 |
Dashboard /wp-admin | 3.19 ▲0.13 | 34.90 ▼11.50 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 42.27 ▲0.95 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 90.14 ▼548.77 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 32.11 ▼2.82 |
Send email /wp-admin/admin.php?page=inquiries_send_email | 3.11 | 30.20 |
Add new /wp-admin/admin.php?page=inquiries_form | 3.10 | 25.44 |
Inquiries /wp-admin/admin.php?page=inquiries | 3.11 | 27.70 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_inquiries |
New WordPress options |
---|
student_inquiry_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Student Inquiry
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,726 ▲130 | 15.95 ▲0.04 | 7.83 ▼0.64 | 49.78 ▲3.35 |
Dashboard /wp-admin | 3,017 ▲80 | 6.16 ▲0.24 | 134.36 ▼11.29 | 115.15 ▼4.34 |
Posts /wp-admin/edit.php | 2,786 ▲50 | 2.73 ▲0.05 | 71.37 ▲9.12 | 90.51 ▲7.55 |
Add New Post /wp-admin/post-new.php | 1,531 ▲31 | 18.42 ▼0.15 | 350.69 ▼17.15 | 108.33 ▲0.43 |
Media Library /wp-admin/upload.php | 1,867 ▲57 | 5.13 ▲0.12 | 130.87 ▼32.35 | 119.19 ▼7.45 |
Send email /wp-admin/admin.php?page=inquiries_send_email | 1,432 | 2.55 | 63.99 | 86.28 |
Add new /wp-admin/admin.php?page=inquiries_form | 1,352 | 2.42 | 61.80 | 79.01 |
Inquiries /wp-admin/admin.php?page=inquiries | 1,441 | 2.42 | 61.88 | 66.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_inquiries
- This plugin did not uninstall successfully, leaving 1 option in the database
- student_inquiry_db_version
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 register_activation_hook() in wp-content/plugins/student-inquiry-listing/student-inquiry.php:61
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: send email, crud operations, backend, plugin, student inquiry...
student-inquiry-listing/student-inquiry.php 92% from 13 tests
The principal PHP file in "Student Inquiry" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("student-inquiry-listing.php" instead of "student-inquiry.php")
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
Good job! No executable or dangerous file extensions detected2,114 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 42 | 49 | 1,249 |
PHP | 1 | 120 | 139 | 801 |
JavaScript | 1 | 9 | 16 | 64 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.60MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 55.02KB | 9.26KB | ▼ 83.18% |
screenshot-3.png | 145.39KB | 35.57KB | ▼ 75.54% |
screenshot-2.png | 94.90KB | 16.74KB | ▼ 82.36% |
screenshot-4.png | 115.76KB | 24.22KB | ▼ 79.08% |
screenshot-1.png | 199.36KB | 56.74KB | ▼ 71.54% |