Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.09ms] Passed 4 tests
Analyzing server-side resources used by Fontsize Selector Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 30.18 ▼12.91 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.50 ▲1.02 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.52 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 98.74 ▲4.34 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.12 ▲5.70 |
Fontsize Selector /wp-admin/options-general.php?page=fontsize_selector | 3.28 | 30.89 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 24 new options
New WordPress options |
---|
interval |
active_post_lock |
_nonce |
db_upgraded |
wp-submit |
can_compress_scripts |
widget_fontsize_selector_widget |
widget_recent-posts |
_wpnonce |
has_focus |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Fontsize Selector Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.22 ▼1.15 | 1.96 ▼0.14 | 37.32 ▼4.57 |
Dashboard /wp-admin | 2,213 ▲25 | 5.05 ▼0.81 | 109.55 ▼1.88 | 42.93 ▼1.94 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.05 | 40.22 ▼1.00 | 39.81 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,357 ▼162 | 17.17 ▼6.05 | 588.22 ▼38.43 | 46.12 ▼3.36 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.15 ▼0.09 | 97.36 ▼1.45 | 41.93 ▼3.25 |
Fontsize Selector /wp-admin/options-general.php?page=fontsize_selector | 999 | 2.02 | 24.55 | 48.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 24 options in the database
- testcookie
- theysaidso_admin_options
- query
- widget_theysaidso_widget
- can_compress_scripts
- redirect_to
- widget_recent-posts
- post_ID
- interval
- has_focus
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in fontsize-selector/assets to your readme.txt
fontsize-selector/fontsize-selector-widget.php 92% from 13 tests
The main PHP script in "Fontsize Selector Widget" version 0.51 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fontsize-selector.php" instead of "fontsize-selector-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected556 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 80 | 75 | 428 |
CSS | 1 | 0 | 2 | 90 |
JavaScript | 1 | 5 | 7 | 23 |
PO File | 1 | 2 | 3 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 14 | |
▷ Named functions | 14 | 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
No PNG files were detected