Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼303.37ms] Passed 4 tests
An overview of server-side resources used by Read and Understood
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.36 | 40.33 ▲21.12 |
Dashboard /wp-admin | 3.24 ▲0.19 | 62.47 ▲20.05 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 55.73 ▲9.89 |
Add New Post /wp-admin/post-new.php | 4.83 ▼0.60 | 64.86 ▼1,245.00 |
Media Library /wp-admin/upload.php | 3.18 ▲0.17 | 42.31 ▲1.60 |
Read and Understood /wp-admin/options-general.php?page=read-and-understood-menu-slug-01 | 3.13 | 38.46 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: 2 new tables, 5 new options
New tables |
---|
wp_rnu_categories |
wp_rnu_acknowledgements |
New WordPress options |
---|
rnu_username_validation_pattern |
rnu_db_version |
rnu_plugin_version |
rnu_require_login |
rnu_username_validation_title |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Read and Understood
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,822 ▲216 | 17.10 ▲1.59 | 12.51 ▲1.96 | 48.46 ▲3.79 |
Dashboard /wp-admin | 2,964 ▲111 | 6.05 ▲0.22 | 139.86 ▼6.19 | 98.16 ▲1.75 |
Posts /wp-admin/edit.php | 2,740 ▲34 | 2.72 ▲0.03 | 68.81 ▼0.87 | 112.59 ▲16.71 |
Add New Post /wp-admin/post-new.php | 1,693 ▲42 | 18.97 ▲1.55 | 370.38 ▲24.23 | 125.13 ▲25.97 |
Media Library /wp-admin/upload.php | 1,806 ▲31 | 5.12 ▲0.14 | 128.56 ▼13.44 | 108.77 ▼3.67 |
Read and Understood /wp-admin/options-general.php?page=read-and-understood-menu-slug-01 | 1,116 | 2.52 | 69.59 | 65.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, class 'class_wp_rnu' does not have a method 'rnudb_deactivate'
- This plugin does not fully uninstall, leaving 4 options in the database
- rnu_plugin_version
- rnu_username_validation_title
- rnu_username_validation_pattern
- rnu_require_login
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=read-and-understood-menu-slug-01
- > Notice in wp-content/plugins/read-and-understood/class_wp_rnu.php+522
Undefined index: rnu_ExportBtn
- > GET request to /wp-admin/options-general.php?page=read-and-understood-menu-slug-01
- > Notice in wp-content/plugins/read-and-understood/class_wp_rnu.php+522
Undefined index: rnu_PurgeBtn
- > GET request to /wp-admin/options-general.php?page=read-and-understood-menu-slug-01
- > Notice in wp-content/plugins/read-and-understood/class_wp_rnu.php+586
Undefined index: submit_hidden
- > GET request to /wp-admin/options-general.php?page=read-and-understood-menu-slug-01
- > Notice in wp-content/plugins/read-and-understood/class_wp_rnu.php+796
Undefined variable: sql
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/read-and-understood/class_wp_rnu.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No tags were detected
read-and-understood/class_wp_rnu.php 85% from 13 tests
The principal PHP file in "Read and Understood" v. 2.4 is loaded by WordPress automatically on each request
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: The principal plugin file should be the same as the plugin slug ("read-and-understood.php" instead of "class_wp_rnu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,407 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 86 | 251 | 905 |
CSS | 2 | 42 | 65 | 397 |
JavaScript | 1 | 14 | 18 | 105 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 161.00 |
▷ Minimum class complexity | 161.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 7.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 0.69MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
images/RnU_Admin_Screen_Shot.png | 122.52KB | 49.63KB | ▼ 59.49% |
images/RnU_Sample_Export.png | 90.72KB | 38.73KB | ▼ 57.31% |
css/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |