74% sliced-invoices-formidable-forms

Code Review | Sliced Invoices & Formidable Forms

WordPress plugin Sliced Invoices & Formidable Forms scored74%from 54 tests.

About plugin

  • Plugin page: sliced-invoices-f...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Mar 6, 2020
  • Latest release: May 27, 2022
  • Number of updates: 8
  • Update frequency: every 101.5 days
  • Top authors: SlicedInvoices (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,405 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.12ms] Passed 4 tests

A check of server-side resources used by Sliced Invoices & Formidable Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1135.37 ▼4.57
Dashboard /wp-admin3.41 ▲0.1046.90 ▼0.10
Posts /wp-admin/edit.php3.53 ▲0.1744.93 ▼2.28
Add New Post /wp-admin/post-new.php5.99 ▲0.1089.99 ▲0.87
Media Library /wp-admin/upload.php3.34 ▲0.1033.05 ▼1.51

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
wp_siff_settings
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Sliced Invoices & Formidable Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.35 ▲0.031.56 ▼0.1836.66 ▼11.77
Dashboard /wp-admin2,210 ▲365.53 ▼0.1385.26 ▼4.3341.45 ▼0.76
Posts /wp-admin/edit.php2,118 ▲182.15 ▲0.1936.01 ▲0.1133.40 ▼2.67
Add New Post /wp-admin/post-new.php1,544 ▲1823.24 ▼0.51603.20 ▼93.4349.59 ▼3.50
Media Library /wp-admin/upload.php1,418 ▲214.18 ▲0.0397.25 ▼2.2444.72 ▼0.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_siff_settings
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
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 do_action() in wp-content/plugins/sliced-invoices-formidable-forms/includes/sliced-invoices-ff-settings.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt might help

sliced-invoices-formidable-forms/sliced-invoices-formidable-forms.php Passed 13 tests

This is the main PHP file of "Sliced Invoices & Formidable Forms" 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
130 characters long description:
Create forms that allow users to submit a quote or estimate request. Requirements: The Sliced Invoices Plugin and Formidable Forms

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
Good job! No executable or dangerous file extensions detected1,020 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP513965837
CSS11892
JavaScript18091

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.77
Average class complexity61.50
▷ Minimum class complexity8.00
▷ Maximum class complexity115.00
Average method complexity7.72
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods738.89%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
4 PNG files occupy 0.30MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-3.png113.90KB31.08KB▼ 72.71%
screenshots/screenshot-2.png42.38KB38.44KB▼ 9.29%
screenshots/screenshot-4.png41.88KB39.67KB▼ 5.28%
screenshots/screenshot-1.png110.40KB30.44KB▼ 72.43%