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.37MB] [CPU: ▼14.90ms] Passed 4 tests
This is a short check of server-side resources used by WP-Font-Resizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.45 | 4.76 ▼35.02 |
Dashboard /wp-admin | 3.36 ▼0.03 | 49.96 ▼14.95 |
Posts /wp-admin/edit.php | 3.41 ▲0.01 | 48.70 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.01 | 86.75 ▼6.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.01 | 34.95 ▼3.38 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP-Font-Resizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲134 | 13.45 ▼0.70 | 9.54 ▲8.05 | 44.19 ▲2.82 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.02 | 95.22 ▲5.12 | 41.98 ▲2.66 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.04 | 36.90 ▲1.43 | 34.48 ▼7.93 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.12 ▲0.00 | 672.70 ▼9.62 | 67.88 ▲10.53 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.00 | 96.94 ▼3.17 | 43.95 ▼3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-font-resizer/WP-Font-Resizer.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: "none"
- Screenshots: Screenshot #1 (Font Resizer Option on posts.) image not found
wp-font-resizer/WP-Font-Resizer.php 92% from 13 tests
"WP-Font-Resizer" version 2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-font-resizer.php" instead of "WP-Font-Resizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected116 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 29 | 44 |
CSS | 1 | 0 | 0 | 39 |
JavaScript | 1 | 1 | 0 | 33 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ 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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 40.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 60.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.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
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/minus.png | 0.82KB | 0.70KB | ▼ 14.47% |
images/reload.png | 2.92KB | 2.34KB | ▼ 19.83% |
screenshot-1.png | 60.67KB | 23.76KB | ▼ 60.84% |
images/plus.png | 1.18KB | 1.03KB | ▼ 12.53% |