78% conversions-extensions

Code Review | Conversions Extensions

WordPress plugin Conversions Extensions scored78%from 54 tests.

About plugin

  • Plugin page: conversions-exten...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Apr 7, 2020
  • Latest release: Sep 26, 2023
  • Number of updates: 52
  • Update frequency: every 24.4 days
  • Top authors: uniquelylost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,833 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼8.42ms] Passed 4 tests

This is a short check of server-side resources used by Conversions Extensions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.2046.51 ▲4.42
Dashboard /wp-admin3.78 ▲0.1452.89 ▼12.87
Posts /wp-admin/edit.php3.83 ▲0.1557.51 ▲5.41
Add New Post /wp-admin/post-new.php6.30 ▲0.1588.89 ▼24.70
Media Library /wp-admin/upload.php3.64 ▲0.1538.38 ▼0.52

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 178 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Conversions Extensions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.41 ▲0.031.77 ▼0.1444.97 ▲3.54
Dashboard /wp-admin2,198 ▲205.67 ▼0.0394.61 ▼14.0742.30 ▼0.83
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0139.76 ▲0.4138.29 ▲0.51
Add New Post /wp-admin/post-new.php1,545 ▲1923.11 ▲5.56653.77 ▼49.2261.52 ▲4.85
Media Library /wp-admin/upload.php1,397 ▼04.20 ▼0.0595.35 ▼10.5844.72 ▲0.91

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/conversions-extensions/vendor/awesomemotive/one-click-demo-import/one-click-demo-import.php
  • 60× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/conversions-extensions/vendor/awesomemotive/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/conversions-extensions/homepage/customizer/homepage.icon-features.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/conversions-extensions/homepage/customizer/homepage.team.php:9
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/conversions-extensions/social/social-customizer.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/conversions-extensions/vendor/awesomemotive/wp-content-importer-v2/src/Importer.php:10
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/conversions-extensions/homepage/customizer/homepage.team.php on line 9
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/conversions-extensions/homepage/customizer/homepage.map.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/conversions-extensions/homepage/customizer/homepage.single-feature.php:9
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/conversions-extensions/homepage/customizer/homepage.icon-features.php on line 8
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/conversions-extensions/homepage/customizer/homepage.counter.php on line 8

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: homepage, extensions, shortcodes, theme demos, social icons

conversions-extensions/conversions-extensions.php 92% from 13 tests

"Conversions Extensions" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected118,646 lines of code in 152 files:
LanguageFilesBlank linesComment linesLines of code
JSON70092,520
PHP842,0383,81512,265
JavaScript121,3486204,528
CSS8312333,603
XML42323723,332
Sass981341,054
SVG21119688
Markdown32530477
Bourne Shell43622179

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity22.40
▷ Minimum class complexity1.00
▷ Maximum class complexity290.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces14
Interfaces0
Traits18
Classes37
▷ Abstract classes00.00%
▷ Concrete classes37100.00%
▷ Final classes12.70%
Methods347
▷ Static methods6017.29%
▷ Public methods27478.96%
▷ Protected methods3911.24%
▷ Private methods349.80%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gallery/images/close.png0.27KB0.29KB0.00%
gallery/images/next.png1.32KB1.58KB0.00%
ocdi/demos/blog-preview.png61.53KB61.53KB0.00%
gallery/images/prev.png1.33KB1.59KB0.00%
ocdi/demos/business-preview.png161.96KB61.36KB▼ 62.11%