78% value-converter

Code Review | Converter

WordPress plugin Converter scored78%from 54 tests.

About plugin

  • Plugin page: value-converter
  • Plugin version: 1.00
  • PHP compatiblity: 6.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.4
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: Jul 22, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: light4210 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /349 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.24ms] Passed 4 tests

This is a short check of server-side resources used by Converter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.92 ▲5.78
Dashboard /wp-admin3.39 ▲0.0843.13 ▼5.63
Posts /wp-admin/edit.php3.44 ▲0.0847.76 ▼3.64
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.58 ▼9.88
Media Library /wp-admin/upload.php3.31 ▲0.0833.64 ▲2.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Converter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.171.72 ▼0.2341.21 ▲1.75
Dashboard /wp-admin2,204 ▲135.88 ▲1.0096.64 ▼10.4941.64 ▼1.39
Posts /wp-admin/edit.php2,096 ▲42.04 ▲0.0239.13 ▼2.3234.33 ▼4.59
Add New Post /wp-admin/post-new.php1,531 ▲1718.68 ▲0.89591.92 ▼52.8657.44 ▲4.54
Media Library /wp-admin/upload.php1,392 ▲74.27 ▲0.0893.61 ▼7.2140.93 ▼2.44
converter /wp-admin/myparameters.php260.440.1113.97

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/value-converter/index.php:30

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/myparameters.php
    • > Network (severe)
    wp-admin/myparameters.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Plugin on page.), #2 (Plugin settings.)
Please take inspiration from this readme.txt

value-converter/index.php 92% from 13 tests

The main file in "Converter" v. 1.00 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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("value-converter.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin391 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1838391

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin