84% wpac-typing

Code Review | Urdu Typing

WordPress plugin Urdu Typing scored84%from 54 tests.

About plugin

  • Plugin page: wpac-typing
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: Nov 18, 2019
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: mianshahzadraza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /4,656 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.19ms] Passed 4 tests

Server-side resources used by Urdu Typing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.28 ▼6.60
Dashboard /wp-admin3.33 ▼0.0147.66 ▼24.63
Posts /wp-admin/edit.php3.39 ▲0.0348.88 ▼0.80
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.97 ▼8.74
Media Library /wp-admin/upload.php3.26 ▲0.0343.81 ▲9.56

Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Urdu Typing: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8513.24 ▼1.111.90 ▼0.3546.69 ▲5.18
Dashboard /wp-admin2,237 ▲345.88 ▲0.99110.90 ▼3.1992.75 ▲51.15
Posts /wp-admin/edit.php2,133 ▲332.04 ▼0.0040.04 ▲4.1334.84 ▲0.59
Add New Post /wp-admin/post-new.php1,570 ▲2523.01 ▼0.25717.29 ▲50.4639.87 ▼23.27
Media Library /wp-admin/upload.php1,433 ▲334.30 ▼0.02103.63 ▼5.0146.41 ▲1.91

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpac-typing/wpac-typing.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: urdu typing, urdu keyboard, urdu, urdu writting

wpac-typing/wpac-typing.php 92% from 13 tests

This is the main PHP file of "Urdu Typing" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,570 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG1003,900
JavaScript26140559
PHP1243573
CSS13838

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/keyboard-layout.png146.04KB58.32KB▼ 60.07%
assets/images/ic-browsers.png9.63KB3.91KB▼ 59.44%
assets/images/keyboard.png0.20KB0.15KB▼ 24.02%