Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.95MB] [CPU: ▼33.97ms] Passed 4 tests
A check of server-side resources used by RH Devnia Webfonts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 47.79 ▲6.81 |
Dashboard /wp-admin | 2.99 ▼0.31 | 23.79 ▼27.34 |
Posts /wp-admin/edit.php | 2.99 ▼0.36 | 27.40 ▼25.96 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 27.57 ▼68.94 |
Media Library /wp-admin/upload.php | 2.99 ▼0.23 | 22.11 ▼13.62 |
RH Devnia webfonts /wp-admin/options-general.php?page=change_font | 3.00 | 26.20 |
Server storage [IO: ▲2.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
RH Devnia Webfonts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲160 | 13.38 ▼0.85 | 2.13 ▼0.46 | 35.08 ▼14.32 |
Dashboard /wp-admin | 2,325 ▲134 | 5.00 ▼0.89 | 114.95 ▲11.94 | 42.04 ▼1.85 |
Posts /wp-admin/edit.php | 2,204 ▲112 | 2.15 ▲0.15 | 38.85 ▼1.52 | 37.28 ▲3.07 |
Add New Post /wp-admin/post-new.php | 6,299 ▲4,763 | 23.57 ▲0.25 | 936.41 ▲310.68 | 35.60 ▼18.85 |
Media Library /wp-admin/upload.php | 1,506 ▲124 | 4.40 ▲0.15 | 99.55 ▲0.46 | 42.18 ▼3.09 |
RH Devnia webfonts /wp-admin/options-general.php?page=change_font | 976 | 1.97 | 25.64 | 36.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=change_font
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=change_font
- > Notice in wp-content/plugins/rh-devnia-webfonts/change_font.php+2
Undefined index: devnia_hidden
SRP 50% from 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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rh-devnia-webfonts/change_font.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rh-devnia-webfonts/index.php:22
- > PHP Notice
Undefined index: devnia_hidden in wp-content/plugins/rh-devnia-webfonts/change_font.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=change_font
- > Network (severe)
http://fonts.hosni.netdna-cdn.com/fonts/cdn/file_font/?font= - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
rh-devnia-webfonts/index.php 92% from 13 tests
"RH Devnia Webfonts" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("rh-devnia-webfonts.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin41,958 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 8 | 0 | 0 | 28,555 |
CSS | 5 | 23 | 36 | 10,033 |
JSON | 1 | 0 | 0 | 2,592 |
JavaScript | 4 | 84 | 32 | 470 |
PO File | 2 | 95 | 88 | 221 |
PHP | 2 | 20 | 15 | 87 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 40.81KB | 18.66KB | ▼ 54.27% |
assets/screenshot-1.png | 34.25KB | 13.79KB | ▼ 59.75% |
assets/icon-128x128.png | 13.95KB | 5.80KB | ▼ 58.42% |
screesshot-1.png | 34.25KB | 13.79KB | ▼ 59.75% |