Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.91MB] [CPU: ▼37.90ms] Passed 4 tests
Analyzing server-side resources used by Easy Reading Mode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 25.09 ▼16.07 |
Dashboard /wp-admin | 3.03 ▼0.27 | 23.15 ▼23.84 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 25.39 ▼23.72 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 23.99 ▼87.98 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 22.43 ▼12.26 |
Easy Reading Mode /wp-admin/options-general.php?page=erm-options-page | 3.03 | 26.09 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
erm_is_activated |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
erm_is_first_time |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Reading Mode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.81 ▲0.41 | 1.88 ▼0.14 | 44.03 ▲2.58 |
Dashboard /wp-admin | 2,207 ▲33 | 5.80 ▼0.07 | 97.06 ▼15.07 | 41.01 ▼6.70 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.02 | 38.85 ▼3.55 | 32.83 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.33 ▲0.10 | 625.58 ▲21.02 | 56.29 ▼2.93 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.24 ▲0.03 | 102.31 ▲2.82 | 42.66 ▼3.15 |
Easy Reading Mode /wp-admin/options-general.php?page=erm-options-page | 941 | 1.75 | 26.10 | 36.23 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ERM_Admin::erm_register_settings() should not be called statically
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- erm_is_activated
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- erm_is_first_time
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=erm-options-page
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ERM_Admin::erm_register_settings() should not be called statically
- 21 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=erm-options-page
- > Notice in wp-content/plugins/easy-reading-mode/class.erm-admin.php+175
Undefined index: help-text
- > GET request to /wp-admin/options-general.php?page=erm-options-page
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ERM_Admin::erm_admin_notice() should not be called statically
- > GET request to /wp-admin/options-general.php?page=erm-options-page
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ERM_Admin::erm_options_page() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=erm-options-page
- > Deprecated in wp-admin/includes/template.php+1771
Non-static method ERM_Admin::section_one_callback() should not be called statically
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=erm-options-page
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method ERM_Admin::erm_field_callback() should not be called statically
SRP 50% from 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
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 plugin_dir_url() in wp-content/plugins/easy-reading-mode/easy-reading-mode.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add a description for screenshot #4 in easy-reading-mode/assets to your readme.txt
easy-reading-mode/easy-reading-mode.php Passed 13 tests
"Easy Reading Mode" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
This plugin allows users to read your blog/article in distraction free reading mode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,519 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 148 | 45 | 850 |
CSS | 2 | 60 | 14 | 400 |
PHP | 3 | 85 | 52 | 260 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |