Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/font-resizer-matching-theme-style/font-resizer.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; tawhidurrahmandeartwentyeightWidget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼57.12ms] Passed 4 tests
Server-side resources used by Font Resizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.19 ▼40.86 |
Dashboard /wp-admin | 2.08 ▼1.22 | 12.72 ▼41.34 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.91 ▼47.20 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.70 ▼99.06 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.67 ▼27.64 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_tawhidurrahmandeartwentyeightwidget |
Browser metrics Passed 4 tests
Font Resizer: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▲0.12 | 1.65 ▲0.06 | 44.83 ▲2.85 |
Dashboard /wp-admin | 2,189 ▲9 | 5.53 ▼0.08 | 93.98 ▲7.36 | 39.10 ▼0.31 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.04 | 35.85 ▼7.06 | 34.12 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,525 ▼1 | 23.66 ▲1.88 | 711.28 ▼1.00 | 54.77 ▲2.76 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.04 | 92.71 ▼8.87 | 40.06 ▼3.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/font-resizer-matching-theme-style/font-resizer.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; tawhidurrahmandeartwentyeightWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_tawhidurrahmandeartwentyeightwidget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 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 Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: font, decrease text, increase text, font resizer, font size
font-resizer-matching-theme-style/font-resizer.php 85% from 13 tests
The main file in "Font Resizer" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 244 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("font-resizer-matching-theme-style.php" instead of "font-resizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin54 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 11 | 54 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 3.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 | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin