Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼1.32ms] Passed 4 tests
Analyzing server-side resources used by Arabic Webfonts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 45.56 ▲5.56 |
Dashboard /wp-admin | 3.67 ▲0.36 | 54.17 ▲2.99 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 50.50 ▲1.89 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 90.11 ▼11.87 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 38.82 ▲1.70 |
Add New Control /wp-admin/post-new.php?post_type=awf_font_control | 3.62 | 46.13 |
All Controls /wp-admin/edit.php?post_type=awf_font_control | 3.63 | 36.23 |
Server storage [IO: ▲0.18MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Arabic Webfonts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲90 | 14.79 ▲0.04 | 1.97 ▲0.24 | 43.45 ▲0.60 |
Dashboard /wp-admin | 2,248 ▲42 | 5.83 ▲0.74 | 100.26 ▼4.00 | 42.49 ▼1.83 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▼0.04 | 36.74 ▼3.22 | 35.15 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,573 ▲42 | 21.14 ▼2.18 | 640.94 ▼8.50 | 66.12 ▲5.73 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.23 ▲0.02 | 100.56 ▼0.58 | 50.85 ▲5.03 |
Add New Control /wp-admin/post-new.php?post_type=awf_font_control | 1,428 | 2.47 | 47.90 | 46.74 |
All Controls /wp-admin/edit.php?post_type=awf_font_control | 1,059 | 1.98 | 33.56 | 29.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=awf_font_control
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: arabic fonts, wordpress fonts, fonts, arabic webfonts, wordpress customizer...
arabic-webfonts/arabic-webfonts.php 92% from 13 tests
The principal PHP file in "Arabic Webfonts" v. 1.4.6 is loaded by WordPress automatically on each request
You should first fix the following items:
- Git Repository: Please remove the Git repository from this plugin
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,695 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 500 | 753 | 2,066 |
JavaScript | 2 | 72 | 84 | 212 |
PO File | 1 | 63 | 116 | 181 |
JSON | 3 | 0 | 0 | 120 |
Markdown | 1 | 29 | 0 | 66 |
CSS | 1 | 8 | 3 | 50 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 22.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 5 | 7.81% |
▷ Public methods | 59 | 92.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.81% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
No PNG files were detected