84% dhivehi-text

Code Review | Dhivehi Text

WordPress plugin Dhivehi Text scored84%from 54 tests.

About plugin

  • Plugin page: dhivehi-text
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2015
  • Latest release: Nov 26, 2015
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: dash8x (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Dhivehi Text
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.75 ▲1.82
Dashboard /wp-admin3.32 ▲0.0248.96 ▼0.52
Posts /wp-admin/edit.php3.37 ▲0.0145.81 ▲1.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.39 ▼8.94
Media Library /wp-admin/upload.php3.25 ▲0.0131.41 ▼1.51

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

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

Browser metrics Passed 4 tests

Dhivehi Text: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.74 ▲0.161.91 ▼0.0742.99 ▼0.00
Dashboard /wp-admin2,208 ▲195.85 ▲0.87111.33 ▲5.1243.93 ▲1.25
Posts /wp-admin/edit.php2,091 ▲22.05 ▲0.0740.30 ▲0.0235.67 ▲3.03
Add New Post /wp-admin/post-new.php1,538 ▼417.68 ▼0.58675.42 ▲37.5852.42 ▼13.09
Media Library /wp-admin/upload.php1,384 ▼74.21 ▼0.10103.21 ▲4.4842.57 ▼0.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === dhivehi-text === )
Please take inspiration from this readme.txt

dhivehi-text/dhivehi-text.php Passed 13 tests

"Dhivehi Text" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Adds a button to the WordPress TinyMCE editor for Dhivehi text.

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
There were no executable files found in this plugin103 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1176546
JavaScript142529
CSS14028

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin