88% wp-conversion-by-rightune

Code Review | WordPress Conversion by righTune

WordPress plugin WordPress Conversion by righTune scored 88% from 54 tests.

About plugin

  • Plugin page: wp-conversion-by-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.2
  • WordPress version: 5.9.2
  • First release: Nov 24, 2013
  • Latest release: May 25, 2015
  • Number of updates: 21
  • Update frequency: every 26.1 days
  • Top authors: righTune (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 3,331 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WordPress Conversion by righTune
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0449.58 ▼0.13
Dashboard /wp-admin3.43 ▲0.0234.86 ▲2.35
Posts /wp-admin/edit.php3.66 ▲0.0237.21 ▲0.69
Add New Post /wp-admin/post-new.php6.90 ▼0.0797.45 ▼1,160.70
Media Library /wp-admin/upload.php3.31 ▲0.0225.19 ▲2.72
WordPress Conversion by righTune /wp-admin/options-general.php?page=rightune3.2521.56

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Conversion by righTune
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲5615.87 ▼0.165.53 ▼0.502.73 ▲0.30
Dashboard /wp-admin2,897 ▲366.15 ▼0.04113.54 ▼18.91155.37 ▼3.85
Posts /wp-admin/edit.php2,693 ▲83.22 ▼0.0167.24 ▲4.26154.62 ▲14.83
Add New Post /wp-admin/post-new.php1,755 ▲11620.92 ▲5.30447.86 ▲26.78160.70 ▲11.30
Media Library /wp-admin/upload.php1,703 ▲55.55 ▲0.01135.32 ▼2.86184.36 ▼5.67
WordPress Conversion by righTune /wp-admin/options-general.php?page=rightune1,0422.5354.54111.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=rightune
    • > Notice in wp-content/plugins/wp-conversion-by-rightune/rightune.php+60
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-conversion-by-rightune/rightune.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (23 tag instead of maximum 10)
You can take inspiration from this readme.txt

wp-conversion-by-rightune/rightune.php 85% from 13 tests

This is the main PHP file of "WordPress Conversion by righTune" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-conversion-by-rightune.php" instead of "rightune.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 219 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2141651

PHP code Passed 2 tests

A short 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.00
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected