Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/time-clock/includes/functions.php+59
Undefined index: default
Server metrics [RAM: ▲0.35MB] [CPU: ▼8.76ms] 75% from 4 tests
A check of server-side resources used by Time Clock - A WordPress Employee & Volunteer Time Clock Plugin
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 834.57ms on /wp-admin/admin.php?page=etimeclockwp_extensions_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 41.71 ▲3.58 |
Dashboard /wp-admin | 3.70 ▲0.35 | 52.36 ▼12.21 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 50.43 ▲6.64 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 82.77 ▼25.56 |
Media Library /wp-admin/upload.php | 3.63 ▲0.39 | 36.39 ▼0.86 |
Activity /wp-admin/edit.php?post_type=etimeclockwp_clock | 3.67 | 39.81 |
Users /wp-admin/edit.php?post_type=etimeclockwp_users | 3.67 | 37.42 |
Plugins /wp-admin/admin.php?page=etimeclockwp_extensions_page | 5.87 | 834.57 |
Settings /wp-admin/admin.php?page=etimeclockwp_settings_page | 3.60 | 34.51 |
Server storage [IO: ▲0.38MB] [DB: ▲0.28MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options |
---|
etimeclockwp_settings |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
etimeclockwp_install_date |
widget_recent-comments |
etimeclockwp_firstrun |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Time Clock - A WordPress Employee & Volunteer Time Clock Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,124 ▲378 | 14.57 ▲0.19 | 11.20 ▲9.41 | 43.58 ▼0.85 |
Dashboard /wp-admin | 2,392 ▲201 | 5.41 ▼0.48 | 110.73 ▲10.53 | 87.89 ▲45.33 |
Posts /wp-admin/edit.php | 2,270 ▲181 | 2.57 ▲0.55 | 40.80 ▲4.15 | 39.89 ▲4.81 |
Add New Post /wp-admin/post-new.php | 1,701 ▲168 | 23.39 ▲0.03 | 694.03 ▲105.14 | 43.47 ▼12.93 |
Media Library /wp-admin/upload.php | 1,591 ▲203 | 4.69 ▲0.50 | 101.14 ▼1.68 | 82.25 ▲39.21 |
Activity /wp-admin/edit.php?post_type=etimeclockwp_clock | 1,247 | 2.46 | 39.07 | 32.45 |
Users /wp-admin/edit.php?post_type=etimeclockwp_users | 1,218 | 2.53 | 36.90 | 33.90 |
Plugins /wp-admin/admin.php?page=etimeclockwp_extensions_page | 1,307 | 2.22 | 30.07 | 49.63 |
Settings /wp-admin/admin.php?page=etimeclockwp_settings_page | 1,822 | 3.17 | 59.67 | 38.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.28MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- etimeclockwp_settings
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- etimeclockwp_install_date
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 on the user side
Optimizations
Plugin configuration 93% 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
5 plugin tags: timeclock, volunteer, employee, clock, time
time-clock/timeclock.php 85% from 13 tests
"Time Clock - A WordPress Employee & Volunteer Time Clock Plugin" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("time-clock.php" instead of "timeclock.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin8,038 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,031 | 658 | 5,610 |
PHP | 16 | 864 | 282 | 1,991 |
CSS | 3 | 98 | 6 | 437 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 68 | |
▷ Named functions | 68 | 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
There were not PNG files found in your plugin