Benchmarks
Plugin footprint 83% 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.00MB] [CPU: ▼3.83ms] Passed 4 tests
A check of server-side resources used by Attendance Check
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 47.68 ▲5.45 |
Dashboard /wp-admin | 3.31 ▲0.00 | 41.86 ▼2.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.24 ▲5.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.03 ▼14.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.26 ▼3.55 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 124 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Attendance Check: 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,800 ▲65 | 13.25 ▼1.33 | 1.96 ▲0.22 | 45.58 ▲2.96 |
Dashboard /wp-admin | 2,206 ▲14 | 5.85 ▲0.93 | 108.20 ▼5.21 | 40.86 ▲0.02 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.17 ▲0.18 | 42.16 ▲8.59 | 36.22 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.11 ▼0.00 | 644.21 ▼4.76 | 54.93 ▲5.96 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.27 ▲0.09 | 95.80 ▼3.18 | 40.57 ▼5.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/attendance-check/template.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant PAC_PLUGIN_URL - assumed 'PAC_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/attendance-check/template.php on line 26
- > PHP Warning
Use of undefined constant PAC_PLUGIN_URL - assumed 'PAC_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/attendance-check/template.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/attendance-check/includes/hooks.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/attendance-check/includes/class-settings.php:125
- > PHP Fatal error
Uncaught Error: Class 'myCRED_Hook' not found in wp-content/plugins/attendance-check/includes/class-mycred-hook.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: attendance, attendance check, calendar
attendance-check/presscat-attendance-check.php 85% from 13 tests
This is the main PHP file of "Attendance Check" 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
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("attendance-check.php" instead of "presscat-attendance-check.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,175 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 43 | 499 | 1,830 | 2,152 |
PHP | 6 | 52 | 79 | 461 |
CSS | 23 | 32 | 103 | 307 |
JavaScript | 37 | 10 | 244 | 214 |
PO File | 1 | 11 | 12 | 41 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/seal.png | 13.65KB | 6.32KB | ▼ 53.69% |
assets/images/transparent.png | 0.11KB | 0.10KB | ▼ 9.48% |
assets/images/no_seal.png | 5.88KB | 4.44KB | ▼ 24.50% |