84% whatconverts

Code Review | WhatConverts

WordPress plugin WhatConverts scored84%from 54 tests.

About plugin

  • Plugin page: whatconverts
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 5, 2015
  • Latest release: Jul 24, 2023
  • Number of updates: 51
  • Update frequency: every 60.6 days
  • Top authors: whatconverts (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

5,000+ active /16,188 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.00MB] [CPU: ▼10.41ms] Passed 4 tests

Analyzing server-side resources used by WhatConverts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.91 ▼8.56
Dashboard /wp-admin3.32 ▼0.0244.02 ▼14.80
Posts /wp-admin/edit.php3.37 ▲0.0245.01 ▼1.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.93 ▼16.88
Media Library /wp-admin/upload.php3.24 ▲0.0232.44 ▼0.98
WhatConverts /wp-admin/options-general.php?page=whatconverts3.2130.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_recent-comments
whatconverts_profile_id
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
whatconverts_footer_load
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WhatConverts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.121.64 ▼0.1641.47 ▼2.37
Dashboard /wp-admin2,207 ▲195.86 ▲1.00108.71 ▼6.5538.45 ▼6.43
Posts /wp-admin/edit.php2,093 ▲71.99 ▼0.0638.70 ▲1.9733.82 ▼0.15
Add New Post /wp-admin/post-new.php1,536 ▲1723.30 ▼0.04623.57 ▼57.3054.89 ▼8.50
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.0797.73 ▼3.7942.25 ▼3.57
WhatConverts /wp-admin/options-general.php?page=whatconverts8132.0323.5925.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • whatconverts_profile_id
    • whatconverts_footer_load
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/whatconverts/options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/whatconverts/whatconverts.php:52

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: adwords call tracking, call tracking, goal tracking, whatconverts, cro...

whatconverts/whatconverts.php 92% from 13 tests

Analyzing the main PHP file in "WhatConverts" version 1.0.6
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 238 characters long)

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
Everything looks great! No dangerous files found in this plugin61 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2121161

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png9.81KB4.53KB▼ 53.85%
screenshot-2.png42.79KB15.62KB▼ 63.49%