Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.55ms] 75% from 4 tests
An overview of server-side resources used by Attendance Manager
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 13,625.39ms on /wp-admin/admin.php?page=attmgr-general)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 40.38 ▲3.87 |
Dashboard /wp-admin | 3.47 ▲0.16 | 69.05 ▲21.39 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 43.80 ▼3.75 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.09 ▼12.51 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.23 ▼1.79 |
Special Pages /wp-admin/admin.php?page=attmgr-specialpages | 3.28 | 31.10 |
General /wp-admin/admin.php?page=attmgr-general | 4.64 | 13,625.39 |
Server storage [IO: ▲0.88MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 28 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_attmgr_schedule |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
attmgr_version |
widget_theysaidso_widget |
widget_recent-comments |
attmgr |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Attendance Manager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲140 | 13.84 ▼0.72 | 9.46 ▲7.55 | 38.86 ▲0.10 |
Dashboard /wp-admin | 2,227 ▲49 | 5.62 ▼0.10 | 84.52 ▼14.03 | 38.97 ▼1.95 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.01 ▲0.03 | 32.72 ▼8.32 | 35.29 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.24 ▲0.22 | 662.74 ▲29.87 | 54.81 ▲6.77 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.20 ▼0.03 | 96.92 ▼1.11 | 42.64 ▼1.35 |
Special Pages /wp-admin/admin.php?page=attmgr-specialpages | 916 | 2.12 | 21.62 | 24.81 |
General /wp-admin/admin.php?page=attmgr-general | 1,302 | 2.04 | 23.17 | 66.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_attmgr_schedule
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/attendance-manager/class/class-attmgr.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 ("Scheduler for Admin" page), #2 ("Scheduler for Staff" page), #3 ("Today's Staff" page), #4 ("Weekly schedule" page), #5 ("Monthly schedule" page), #6 (Plugin option)
attendance-manager/attendance-manager.php 92% from 13 tests
"Attendance Manager" version 0.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,602 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 298 | 602 | 2,868 |
CSS | 2 | 32 | 47 | 355 |
PO File | 2 | 136 | 148 | 315 |
JavaScript | 1 | 8 | 3 | 64 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 31.55 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 106 | 87.60% |
▷ Public methods | 121 | 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 | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.73MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 128.42KB | 64.39KB | ▼ 49.86% |
img/nopoatrait.png | 4.57KB | 2.00KB | ▼ 56.28% |
screenshot-5.png | 118.73KB | 65.30KB | ▼ 45.00% |
screenshot-6.png | 76.85KB | 31.31KB | ▼ 59.26% |
screenshot-2.png | 143.27KB | 58.73KB | ▼ 59.01% |