84% devinlabs-length-and-distance-converter

Code Review | Devinlabs Unit Conventer

WordPress plugin Devinlabs Unit Conventer scored 84% from 54 tests.

About plugin

  • Plugin page: devinlabs-length-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Jan 12, 2017
  • Latest release: Jan 5, 2018
  • Number of updates: 3
  • Update frequency: every 118.0 days
  • Top authors: ravikumar1986ravi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 638 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.32ms] Passed 4 tests

A check of server-side resources used by Devinlabs Unit Conventer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.78 ▼2.61
Dashboard /wp-admin3.32 ▲0.0244.88 ▼6.02
Posts /wp-admin/edit.php3.37 ▲0.0145.91 ▼3.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.91 ▼9.08
Media Library /wp-admin/upload.php3.24 ▲0.0136.33 ▲4.41

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_rbrother-unit-conventer
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Devinlabs Unit Conventer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6814.48 ▲0.132.06 ▲0.0444.03 ▼6.21
Dashboard /wp-admin2,209 ▲184.83 ▼0.02112.01 ▼13.8644.71 ▼4.99
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0139.47 ▲5.6134.95 ▲0.37
Add New Post /wp-admin/post-new.php1,514 ▼517.65 ▼5.47590.22 ▼88.0544.56 ▼9.41
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.12101.03 ▼1.0143.60 ▼0.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_rbrother-unit-conventer
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/devinlabs-length-and-distance-converter/devinlabs-unit-converter.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can take inspiration from this readme.txt

devinlabs-length-and-distance-converter/devinlabs-unit-converter.php 92% from 13 tests

The entry point to "Devinlabs Unit Conventer" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("devinlabs-length-and-distance-converter.php" instead of "devinlabs-unit-converter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin161 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14415161

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
No PNG images were found in this plugin