Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼294.54ms] Passed 4 tests
This is a short check of server-side resources used by Accessibility Font Resizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.10 | 57.45 ▲8.37 |
Dashboard /wp-admin | 3.48 ▲0.07 | 33.41 ▲0.51 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 38.43 ▲2.74 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 96.62 ▼1,181.28 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 26.62 ▼0.12 |
Font Resizer /wp-admin/options-general.php?page=swp-font-resizer | 3.33 | 24.97 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Accessibility Font Resizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,910 ▲166 | 16.33 ▲0.62 | 12.33 ▲4.35 | 3.12 ▲0.84 |
Dashboard /wp-admin | 2,897 ▲36 | 6.12 ▼0.03 | 119.76 ▼19.43 | 156.11 ▼6.51 |
Posts /wp-admin/edit.php | 2,692 ▼2 | 3.23 ▼0.01 | 63.92 ▼0.48 | 144.43 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,671 ▼47 | 18.27 ▼4.38 | 388.28 ▼35.72 | 162.36 ▲5.61 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.51 ▲0.01 | 143.15 ▼0.89 | 187.06 ▼0.57 |
Font Resizer /wp-admin/options-general.php?page=swp-font-resizer | 1,148 | 2.36 | 54.85 | 119.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /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 esc_attr() in wp-content/plugins/accessibility-font-resizer/includes/views/resize-large.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_textarea() in wp-content/plugins/accessibility-font-resizer/includes/views/elems.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 _e() in wp-content/plugins/accessibility-font-resizer/includes/views/options-page.php:3
- > 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 get_option() in wp-content/plugins/accessibility-font-resizer/includes/views/debug.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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: font resizer, text size, font resize, accessibility, text resizer...
accessibility-font-resizer/accessibility-font-resizer.php Passed 13 tests
Analyzing the main PHP file in "Accessibility Font Resizer" version 1.0.4
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 considered dangerous and should not be included with any WordPress plugin
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 brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems 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
It is recommended to compress PNG files in your plugin to 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% |