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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.19ms] Passed 4 tests
Analyzing server-side resources used by Accessibility Font Resizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 47.18 ▲12.08 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.61 ▼2.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.11 ▲2.45 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.74 ▼7.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.02 ▼5.09 |
Font Resizer /wp-admin/options-general.php?page=swp-font-resizer | 3.25 | 37.35 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Accessibility Font Resizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 13.47 ▼0.85 | 12.29 ▲10.67 | 41.56 ▼1.11 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▲0.00 | 94.47 ▲5.11 | 43.12 ▼3.13 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 33.59 ▼3.03 | 34.19 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.47 ▲0.42 | 679.86 ▲9.80 | 56.13 ▼3.46 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▼0.02 | 95.83 ▼15.23 | 41.38 ▼5.65 |
Font Resizer /wp-admin/options-general.php?page=swp-font-resizer | 909 | 2.16 | 22.65 | 25.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/accessibility-font-resizer/accessibility-font-resizer.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accessibility-font-resizer/includes/views/options-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/accessibility-font-resizer/includes/views/elems.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/accessibility-font-resizer/includes/views/debug.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/resize-xlarge.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/cookie.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/resize-normal.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/resize-large.php:2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: accessibility, text resizer, font resizer, font resize, font size...
accessibility-font-resizer/accessibility-font-resizer.php Passed 13 tests
"Accessibility Font Resizer" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
115 characters long description:
Make accessibility better for your visitors by enabling them to resize the text on your website and make it bigger.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin275 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 35 | 64 | 210 |
JavaScript | 1 | 16 | 38 | 65 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 1 | 5.56% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/satellitewp.png | 2.71KB | 2.65KB | ▼ 2.34% |