Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/comfortable-reading/comfortable-reading.php+121
Methods with the same name as their class will not be constructors in a future version of PHP; wp_cr_plugin has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼52.49ms] Passed 4 tests
Analyzing server-side resources used by Comfortable Reading
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.54 ▼30.93 |
Dashboard /wp-admin | 2.10 ▼1.25 | 5.23 ▼49.96 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.90 ▼37.52 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.66 ▼91.53 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.20 ▼30.04 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_wp_cr_plugin |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Comfortable Reading
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.55 ▼0.86 | 9.78 ▲8.17 | 42.53 ▲1.93 |
Dashboard /wp-admin | 2,212 ▲32 | 5.52 ▼0.13 | 86.62 ▼0.22 | 68.02 ▲27.32 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 1.99 ▼0.01 | 37.43 ▲1.43 | 33.37 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,703 ▲175 | 24.62 ▲1.55 | 682.75 ▲8.73 | 47.98 ▼8.84 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.19 ▼0.03 | 93.58 ▼7.58 | 74.02 ▲31.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/comfortable-reading/comfortable-reading.php+121
Methods with the same name as their class will not be constructors in a future version of PHP; wp_cr_plugin has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_wp_cr_plugin
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comfortable-reading/comfortable-reading.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
6 plugin tags: assistive, font, color, size, vision...
comfortable-reading/comfortable-reading.php Passed 13 tests
Analyzing the main PHP file in "Comfortable Reading" version 1.6.6
69 characters long description:
Демо версия плагина для слабовидящих.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin404 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 51 | 10 | 186 |
PHP | 1 | 33 | 21 | 110 |
CSS | 2 | 1 | 0 | 108 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/cr-admin-icon.png | 0.73KB | 0.84KB | 0.00% |
img/eye-icon.png | 0.72KB | 0.93KB | 0.00% |