Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.64MB] [CPU: ▼15.34ms] Passed 4 tests
This is a short check of server-side resources used by WP Attend
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 43.00 ▲4.77 |
Dashboard /wp-admin | 3.34 ▼0.01 | 47.47 ▼11.63 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.69 ▲4.22 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.67 | 37.56 ▼57.22 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.82 ▲3.26 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 45 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_at_subscriptions |
wp_at_activities |
wp_at_activities_attendances |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
wpattend_privacy_policy_url |
Browser metrics Passed 4 tests
WP Attend: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 13.62 ▼0.74 | 14.57 ▲12.88 | 46.68 ▲3.63 |
Dashboard /wp-admin | 2,240 ▲63 | 5.64 ▼0.01 | 94.17 ▼16.94 | 45.75 ▲2.01 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 2.01 ▼0.01 | 41.91 ▲3.28 | 38.41 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.35 ▼0.32 | 610.61 ▼80.70 | 58.83 ▼5.22 |
Media Library /wp-admin/upload.php | 1,442 ▲45 | 4.25 ▲0.07 | 96.73 ▼4.61 | 46.19 ▼1.34 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_at_activities
- wp_at_subscriptions
- wp_at_activities_attendances
- This plugin does not fully uninstall, leaving 7 options in the database
- wpattend_privacy_policy_url
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Even though no errors were found, 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
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-attend/includes/controllers/class-wp-attend-activity-controller.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-attend/includes/controllers/class-subscription-controller.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_AT_List_Table' not found in wp-content/plugins/wp-attend/includes/pages/subscriptions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-attend/includes/pages/admin_wpattend.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-attend/includes/pages/general-settings.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table_C' not found in wp-content/plugins/wp-attend/includes/components/class-wp-at-list-table.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: administration, registration, calendar, attendance, email...
wp-attend/WPAttend.php 92% from 13 tests
The principal PHP file in "WP Attend" v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-attend.php" instead of "WPAttend.php")
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
Everything looks great! No dangerous files found in this plugin15,354 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,263 | 91 | 9,270 |
JavaScript | 6 | 872 | 338 | 3,769 |
PHP | 14 | 337 | 596 | 1,780 |
Sass | 4 | 76 | 1 | 422 |
PO File | 1 | 41 | 53 | 97 |
Ruby | 1 | 3 | 12 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 1 | 1.04% |
▷ Public methods | 70 | 72.92% |
▷ Protected methods | 21 | 21.88% |
▷ Private methods | 5 | 5.21% |
Functions | 13 | |
▷ Named functions | 1 | 7.69% |
▷ Anonymous functions | 12 | 92.31% |
Constants | 5 | |
▷ Global constants | 5 | 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
11 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/images/calendar_grey_small.png | 0.47KB | 0.41KB | ▼ 13.10% |
styles/images/calendar_small.png | 0.33KB | 0.30KB | ▼ 9.55% |
styles/images/edit.png | 1.47KB | 1.13KB | ▼ 22.82% |
styles/images/person_notattend.png | 2.89KB | 1.84KB | ▼ 36.14% |
styles/images/calendar_grey.png | 2.48KB | 1.72KB | ▼ 30.55% |