Benchmarks
Plugin footprint 83% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.57MB] [CPU: ▼18.55ms] Passed 4 tests
An overview of server-side resources used by Daily Attendance
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 37.79 ▼9.13 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.61 ▼4.77 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.89 ▼1.90 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.64 | 40.04 ▼56.44 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.05 ▼3.87 |
Server storage [IO: ▲5.62MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Daily Attendance
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.73 ▲0.35 | 1.96 ▲0.31 | 41.61 ▼2.01 |
Dashboard /wp-admin | 2,213 ▲33 | 5.62 ▼0.07 | 94.21 ▲3.16 | 37.74 ▼5.76 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.03 ▼0.01 | 38.42 ▲0.44 | 36.55 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,543 ▼2 | 23.28 ▲0.09 | 614.72 ▼4.93 | 53.65 ▼0.87 |
Media Library /wp-admin/upload.php | 1,418 ▲24 | 4.30 ▲0.11 | 96.77 ▲0.60 | 40.77 ▼0.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daily-attendance/includes/class-hooks.php:19
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
No plugin tags provided
daily-attendance/daily-attendance.php 92% from 13 tests
The primary PHP file in "Daily Attendance" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin4,124 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,105 |
PHP | 7 | 507 | 477 | 1,484 |
CSS | 4 | 121 | 17 | 529 |
JavaScript | 2 | 18 | 6 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 76.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 279.00 |
Average method complexity | 4.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 82.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 17.11% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/pb.png | 33.35KB | 15.99KB | ▼ 52.06% |