84% fizfy

Code Review | Fizfy - Conversion & Sales Software

WordPress plugin Fizfy - Conversion & Sales Software scored84%from 54 tests.

About plugin

  • Plugin page: fizfy
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.5
  • WordPress version: 6.3.1
  • First release: Nov 3, 2020
  • Latest release: Dec 8, 2020
  • Number of updates: 15
  • Update frequency: every 2.3 days
  • Top authors: fizfysoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Fizfy - Conversion & Sales Software
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0821.32 ▼18.28
Dashboard /wp-admin3.32 ▲0.0140.63 ▼10.56
Posts /wp-admin/edit.php3.37 ▲0.0144.52 ▼4.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0176.89 ▼17.81
Media Library /wp-admin/upload.php3.24 ▲0.0130.00 ▼7.63
Fizfy /wp-admin/options-general.php?page=fizfy3.2126.06

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Fizfy - Conversion & Sales Software
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.22 ▼0.171.51 ▼0.1937.56 ▼3.83
Dashboard /wp-admin2,199 ▲195.57 ▼0.0397.36 ▲12.3143.64 ▲0.13
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0038.79 ▲3.7635.88 ▼2.49
Add New Post /wp-admin/post-new.php1,529 ▼923.24 ▲0.28663.50 ▼32.6452.52 ▼3.29
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.1597.27 ▼12.6839.51 ▼9.44
Fizfy /wp-admin/options-general.php?page=fizfy8032.0328.0135.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/fizfy/inc/class-fizfy.php:98
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fizfy/inc/view.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fizfy/inc/assets.php:11

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 on the user side

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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (/assets/screenshot-1.png) image missing
The official readme.txt is a good inspiration

fizfy/fizfy.php 92% from 13 tests

The entry point to "Fizfy - Conversion & Sales Software" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)

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 detected119 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44923101
CSS13018

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin