84% codeart-units-converter

Code Review | CodeArt Units Converter

WordPress plugin CodeArt Units Converter scored84%from 54 tests.

About plugin

  • Plugin page: codeart-units-con...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2022
  • Latest release: Nov 2, 2023
  • Number of updates: 17
  • Update frequency: every 35.5 days
  • Top authors: codeisartnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /815 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.61MB] [CPU: ▼12.42ms] Passed 4 tests

An overview of server-side resources used by CodeArt Units Converter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.19 ▲2.26
Dashboard /wp-admin3.37 ▲0.0746.50 ▲0.87
Posts /wp-admin/edit.php3.43 ▲0.0746.46 ▼0.85
Add New Post /wp-admin/post-new.php3.25 ▼2.6435.88 ▼51.95
Media Library /wp-admin/upload.php3.30 ▲0.0733.08 ▲2.72

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for CodeArt Units Converter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12613.48 ▼0.878.01 ▲6.2145.58 ▲1.61
Dashboard /wp-admin2,207 ▲305.55 ▼0.1285.52 ▼15.2439.06 ▼4.28
Posts /wp-admin/edit.php2,112 ▲121.96 ▼0.0233.20 ▼2.1931.78 ▼5.35
Add New Post /wp-admin/post-new.php1,536 ▲623.19 ▲0.16582.98 ▼99.7354.87 ▼2.02
Media Library /wp-admin/upload.php1,412 ▲184.18 ▼0.0596.79 ▼0.6742.96 ▼1.22

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/codeart-units-converter/include/shortcodes.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/codeart-units-converter/admin/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codeart-units-converter/include/ajax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codeart-units-converter/admin/include/about.php:76

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: woocommerce, units, measurement, calculator, conversion...

codeart-units-converter/codeart-units-converter.php Passed 13 tests

The entry point to "CodeArt Units Converter" version 1.0.6 is a PHP file that has certain tags in its header comment area
128 characters long description:
provides an online conversion calculator for many types of measurement units. for list of short codes visit admin settings page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected814 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP114674727
CSS117468
JavaScript14619

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions20
▷ Named functions1785.00%
▷ Anonymous functions315.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin