Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.97ms] Passed 4 tests
An overview of server-side resources used by Dehkadeh Fonts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 41.94 ▼0.66 |
Dashboard /wp-admin | 3.47 ▲0.17 | 53.15 ▼1.16 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 54.86 ▼0.01 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 97.85 ▼6.05 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 44.69 ▲6.80 |
Server storage [IO: ▲20.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 372 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Dehkadeh Fonts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲21 | 14.28 ▲0.01 | 1.60 ▼0.84 | 38.22 ▼6.71 |
Dashboard /wp-admin | 2,214 ▲40 | 5.65 ▲0.03 | 89.51 ▼11.12 | 41.82 ▼3.02 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.98 ▼0.03 | 39.27 ▲2.78 | 36.23 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.00 ▲0.04 | 655.61 ▲39.27 | 50.66 ▼1.89 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.21 ▲0.00 | 96.76 ▼6.16 | 44.82 ▲1.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dehkadeh-fonts/includes/settings.php:670
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dehkadeh-fonts/includes/wp-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dehkadeh-fonts/includes/functions.php:249
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/dehkadeh-fonts/dw-fonts.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Requires php: Version not formatted correctly
dehkadeh-fonts/dw-fonts.php 77% from 13 tests
The primary PHP file in "Dehkadeh Fonts" version 1.2.0 is used by WordPress to initiate all plugin functionality
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 ("dehkadeh-fonts.php" instead of "dw-fonts.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "5.3-7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,877 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 185 | 75 | 957 |
SVG | 1 | 0 | 0 | 700 |
PO File | 1 | 72 | 74 | 219 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin