84% wpmarathi

Code Review | WPMarathi

WordPress plugin WPMarathi scored84%from 54 tests.

About plugin

  • Plugin page: wpmarathi
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2019
  • Latest release: Sep 20, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: zozuk1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,043 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.65ms] Passed 4 tests

A check of server-side resources used by WPMarathi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.96 ▼6.25
Dashboard /wp-admin3.31 ▲0.0145.42 ▼7.51
Posts /wp-admin/edit.php3.36 ▲0.0048.14 ▲1.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.61 ▼1.97
Media Library /wp-admin/upload.php3.23 ▲0.0035.32 ▲1.12

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WPMarathi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.19 ▼1.401.68 ▼0.4143.93 ▲0.36
Dashboard /wp-admin2,206 ▲185.90 ▲0.10104.87 ▼11.5338.40 ▼4.19
Posts /wp-admin/edit.php2,092 ▼02.07 ▲0.0140.10 ▲4.6036.58 ▲5.29
Add New Post /wp-admin/post-new.php6,188 ▲4,65519.84 ▼3.41917.67 ▲240.0539.98 ▼15.18
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0294.68 ▼16.2342.23 ▼0.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpmarathi/wpmarathi.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpmarathi/constant.php:3

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: marathi, writing, hinglish, typing, transliteration

wpmarathi/wpmarathi.php 92% from 13 tests

The main file in "WPMarathi" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 154 characters long)

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 detected1,687 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS321931,000
JavaScript42717603
PHP4231384

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods120.00%
▷ Protected methods00.00%
▷ Private methods480.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/image/wpmarathi-logo.png0.99KB1.14KB0.00%