89% conversific-connection

Code Review | Conversific

WordPress plugin Conversific scored89%from 54 tests.

About plugin

  • Plugin page: conversific-conne...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 20, 2017
  • Latest release: Nov 28, 2018
  • Number of updates: 12
  • Update frequency: every 28.7 days
  • Top authors: conversific (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.60ms] Passed 4 tests

A check of server-side resources used by Conversific
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0625.19 ▼13.84
Dashboard /wp-admin3.33 ▼0.0244.51 ▼18.49
Posts /wp-admin/edit.php3.44 ▲0.0946.62 ▼1.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.65 ▼15.84
Media Library /wp-admin/upload.php3.25 ▲0.0236.76 ▼2.24

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

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

Browser metrics Passed 4 tests

Conversific: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.30 ▼1.001.79 ▲0.0745.78 ▼2.55
Dashboard /wp-admin2,241 ▲535.83 ▲0.9699.53 ▼1.5839.10 ▼5.11
Posts /wp-admin/edit.php2,126 ▲372.10 ▲0.0739.27 ▲4.8434.18 ▼1.10
Add New Post /wp-admin/post-new.php1,541 ▲2223.20 ▼0.01686.15 ▼21.3956.65 ▼8.81
Media Library /wp-admin/upload.php1,429 ▲384.24 ▲0.04106.04 ▲7.0146.39 ▲1.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No plugin tags provided

conversific-connection/conversific.php 85% from 13 tests

Analyzing the main PHP file in "Conversific" version 1.0.6
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("conversific-connection.php" instead of "conversific.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
No dangerous file extensions were detected326 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43825240
PO File1182369
CSS12017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.07
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods640.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png53.72KB19.07KB▼ 64.51%