93% wparabic

Code Review | WPArabic

WordPress plugin WPArabic scored 93% from 54 tests.

About plugin

  • Plugin page: wparabic
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.3
  • WordPress version: 5.8.1
  • First release: Sep 20, 2019
  • Latest release: Sep 20, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: creativehassan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 663 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼138.43ms] Passed 4 tests

A check of server-side resources used by WPArabic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0436.93 ▲5.06
Dashboard /wp-admin3.09 ▲0.0353.59 ▲8.32
Posts /wp-admin/edit.php3.14 ▲0.0346.43 ▲2.56
Add New Post /wp-admin/post-new.php5.46 ▲0.0392.02 ▼560.55
Media Library /wp-admin/upload.php3.03 ▲0.0331.49 ▼0.79

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPArabic
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8716.17 ▲0.6912.63 ▲1.8244.99 ▼2.95
Dashboard /wp-admin2,964 ▲305.97 ▲0.02160.18 ▲10.50105.98 ▼3.59
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0068.69 ▲0.8487.77 ▼3.14
Add New Post /wp-admin/post-new.php1,693 ▲1019.29 ▲0.93416.48 ▲35.66125.04 ▲15.70
Media Library /wp-admin/upload.php1,807 ▼35.03 ▼0.01158.07 ▲7.76115.71 ▲1.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wparabic/wp-arabic.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI ("")
  • Screenshots: Please add images for these screenshots: #1 (Editing in Classic editor), #2 (Correction Classic editor)
The official readme.txt is a good inspiration

wparabic/wp-arabic.php 92% from 13 tests

The main PHP file in "WPArabic" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wparabic.php" instead of "wp-arabic.php")

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
Everything looks great! No dangerous files found in this plugin912 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43414740
CSS46390
PHP3334182

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/arabic.png3.49KB1.25KB▼ 64.24%