Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.21MB] [CPU: ▼35.04ms] Passed 4 tests
Server-side resources used by Urdu Keyboard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.75 ▼0.71 | 15.75 ▼19.64 |
Dashboard /wp-admin | 2.80 ▼0.50 | 18.33 ▼26.93 |
Posts /wp-admin/edit.php | 2.80 ▼0.55 | 16.29 ▼23.91 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.08 | 16.48 ▼69.67 |
Media Library /wp-admin/upload.php | 2.80 ▼0.43 | 20.92 ▼11.22 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Urdu Keyboard
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲61 | 13.23 ▼1.33 | 1.71 ▼0.12 | 43.94 ▲4.83 |
Dashboard /wp-admin | 2,223 ▲31 | 5.08 ▼0.82 | 101.03 ▼18.60 | 88.77 ▲43.24 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.06 ▲0.04 | 36.68 ▲3.64 | 37.02 ▲3.82 |
Add New Post /wp-admin/post-new.php | 1,697 ▲161 | 22.62 ▼0.64 | 694.30 ▲32.33 | 34.36 ▼23.30 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.29 ▲0.07 | 105.47 ▲6.35 | 84.69 ▲40.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/urdu-keyboard/urduwriting.php+35
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/urdu-keyboard/urduwriting.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Urdu Writing in WordPress posts / pages), #2 (Keyboard layout), #3 (Tags)
urdu-keyboard/urduwriting.php 85% from 13 tests
The entry point to "Urdu Keyboard" version 1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("urdu-keyboard.php" instead of "urduwriting.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected652 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 84 | 68 | 555 |
PHP | 1 | 25 | 33 | 76 |
CSS | 1 | 4 | 4 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin-icon_vectorized.png | 17.73KB | 9.75KB | ▼ 45.01% |
assets/images/admin-icon.png | 1.18KB | 0.28KB | ▼ 76.34% |
assets/images/ic-keyboard.png | 1.52KB | 0.81KB | ▼ 46.75% |
assets/images/ic-browsers.png | 9.63KB | 3.91KB | ▼ 59.44% |