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.25MB] [CPU: ▲1.55ms] Passed 4 tests
A check of server-side resources used by Library Instruction Recorder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 40.03 ▼0.03 |
Dashboard /wp-admin | 3.56 ▲0.26 | 57.48 ▲5.82 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 55.30 ▲3.28 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 93.32 ▲2.32 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 38.42 ▲0.63 |
Add a Class /wp-admin/admin.php?page=LIR-add-a-class | 3.43 | 35.31 |
Settings /wp-admin/admin.php?page=LIR-settings | 3.45 | 36.51 |
Upcoming Classes /wp-admin/admin.php?page=LIR | 3.43 | 33.93 |
Reports /wp-admin/admin.php?page=LIR-reports | 3.45 | 35.89 |
Fields /wp-admin/admin.php?page=LIR-fields | 3.43 | 36.42 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 37 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_LIR_posts |
wp_LIR_meta |
wp_LIR_flags |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Library Instruction Recorder: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 14.11 ▼0.27 | 1.75 ▼0.13 | 41.83 ▼1.47 |
Dashboard /wp-admin | 2,227 ▲50 | 5.62 ▲0.03 | 94.68 ▲6.87 | 40.83 ▼1.47 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.02 ▲0.08 | 39.72 ▼3.74 | 38.21 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,563 ▲23 | 18.50 ▲0.04 | 659.07 ▲6.67 | 63.82 ▲8.43 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.16 ▼0.03 | 96.98 ▼7.23 | 43.96 ▼0.38 |
Add a Class /wp-admin/admin.php?page=LIR-add-a-class | 1,180 | 2.37 | 41.48 | 28.06 |
Settings /wp-admin/admin.php?page=LIR-settings | 957 | 2.35 | 42.43 | 45.20 |
Upcoming Classes /wp-admin/admin.php?page=LIR | 1,019 | 2.57 | 51.96 | 29.29 |
Reports /wp-admin/admin.php?page=LIR-reports | 919 | 2.48 | 33.23 | 30.04 |
Fields /wp-admin/admin.php?page=LIR-fields | 1,019 | 2.31 | 29.89 | 27.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=LIR
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=LIR-fields
- > Warning in wp-content/plugins/library-instruction-recorder/library-instruction-recorder.php+1604
Invalid argument supplied for foreach()
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=LIR-fields
- > Warning in wp-content/plugins/library-instruction-recorder/library-instruction-recorder.php+1587
count(): Parameter must be an array or an object that implements Countable
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 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 register_activation_hook() in wp-content/plugins/library-instruction-recorder/library-instruction-recorder.php:68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: library instruction recorder, instruction, instruction scheduling, teaching, library instruction...
library-instruction-recorder/library-instruction-recorder.php Passed 13 tests
"Library Instruction Recorder" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
A plugin for recording library instruction events and their associated data.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,446 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 298 | 330 | 1,203 |
JavaScript | 2 | 28 | 56 | 206 |
CSS | 3 | 22 | 39 | 37 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 129)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 310.00 |
▷ Minimum class complexity | 310.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 16.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 129.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 3 | 15.00% |
▷ Public methods | 16 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 20.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/jquery-ui/redmond/images/ui-icons_f9bd01_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/jquery-ui/redmond/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/dataTables/images/sort_asc_disabled.png | 2.85KB | 0.25KB | ▼ 91.36% |
css/jquery-ui/redmond/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
css/jquery-ui/redmond/images/ui-bg_flat_55_fbec88_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |