Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/thaana-wp/ThaanaWp_Plugin.php+30
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.04ms] Passed 4 tests
Server-side resources used by Thaana WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 36.88 ▼1.73 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.15 ▼7.79 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.58 ▼1.10 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.70 ▼9.53 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.31 ▲1.03 |
Thaana WP /wp-admin/plugins.php?page=ThaanaWp_PluginSettings | 3.39 | 38.89 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
ThaanaWp_Plugin_isEnabled |
ThaanaWp_Plugin__version |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
ThaanaWp_Plugin__installed |
ThaanaWp_Plugin_KeyboardType |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Thaana WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.35 ▲0.15 | 1.58 ▼0.22 | 39.43 ▼0.05 |
Dashboard /wp-admin | 2,209 ▲31 | 5.70 ▲0.07 | 82.07 ▼31.63 | 34.56 ▼8.33 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.09 ▲0.12 | 35.94 ▲0.12 | 33.22 ▼0.77 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.39 ▲0.43 | 647.42 ▲49.63 | 49.19 ▼1.64 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.31 ▲0.08 | 104.11 ▲8.62 | 44.57 ▲1.75 |
Thaana WP /wp-admin/plugins.php?page=ThaanaWp_PluginSettings | 911 | 1.69 | 23.49 | 29.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- ThaanaWp_Plugin_isEnabled
- ThaanaWp_Plugin__version
- ThaanaWp_Plugin__installed
- ThaanaWp_Plugin_KeyboardType
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/thaana-wp/thaana-wp.php:67
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Editor Window), #2 (Settings Page)
- Donate link: Please fix this invalid URI: ""
thaana-wp/thaana-wp.php Passed 13 tests
The main PHP script in "Thaana WP" version 0.1 is automatically included on every request by WordPress
89 characters long description:
Thaana keyboard support for Posts/Pages. Created using JTK by Jawish Hameed (jawish.org).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected531 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 176 | 527 | 506 |
CSS | 1 | 4 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 62.16% |
▷ Protected methods | 28 | 37.84% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 69.03KB | 20.54KB | ▼ 70.24% |
screenshot-2.png | 48.30KB | 12.03KB | ▼ 75.10% |