79% wp-proposals

Code Review | WP Proposals

WordPress plugin WP Proposals scored79%from 54 tests.

About plugin

  • Plugin page: wp-proposals
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 30, 2019
  • Latest release: Sep 26, 2023
  • Number of updates: 43
  • Update frequency: every 39.5 days
  • Top authors: wpcodeus (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

700+ active /8,344 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.49MB] [CPU: ▲0.71ms] Passed 4 tests

Server-side resources used by WP Proposals
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4544.44 ▲1.53
Dashboard /wp-admin3.83 ▲0.5351.41 ▲2.64
Posts /wp-admin/edit.php3.89 ▲0.5354.51 ▲5.70
Add New Post /wp-admin/post-new.php6.43 ▲0.5590.32 ▼3.41
Media Library /wp-admin/upload.php3.67 ▲0.4439.61 ▲2.07
Create Proposal /wp-admin/post-new.php?post_type=proposal3.8058.82
All Proposals /wp-admin/edit.php?post_type=proposal3.7550.91
General Settings /wp-admin/edit.php?post_type=proposal&page=wpp-settings3.7242.50
Clients /wp-admin/edit-tags.php?taxonomy=clients&post_type=proposal3.6938.08

Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Proposals: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,012 ▲25114.85 ▲0.581.67 ▼0.4940.64 ▼7.12
Dashboard /wp-admin2,408 ▲2346.36 ▲0.69108.85 ▲1.6541.11 ▼6.55
Posts /wp-admin/edit.php2,344 ▲2443.55 ▲1.5950.59 ▲7.7134.67 ▼1.08
Add New Post /wp-admin/post-new.php1,593 ▲5823.32 ▲5.07597.74 ▼16.7331.96 ▼57.09
Media Library /wp-admin/upload.php1,479 ▲824.36 ▲0.1782.59 ▼21.0842.72 ▼0.81
Create Proposal /wp-admin/post-new.php?post_type=proposal2,9197.43181.0080.25
All Proposals /wp-admin/edit.php?post_type=proposal1,3283.4861.4032.53
General Settings /wp-admin/edit.php?post_type=proposal&page=wpp-settings2,42110.62202.50144.25
Clients /wp-admin/edit-tags.php?taxonomy=clients&post_type=proposal1,6083.3148.4128.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • 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 shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-proposals/wp-proposals.php
  • 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-proposals/include/signature-form.php:106
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-proposals/admin/meta/send-proposal-metabox.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-proposals/admin/meta/recommendation-metabox.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-proposals/admin/taxonomies/client-taxonomies.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-proposals/include/templates/template-functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-proposals/admin/settings/general.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-proposals/styling/wpp-dynamic-css.php:202
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-proposals/admin/settings/settings-main.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-proposals/admin/settings/design.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-proposals/admin/meta/meta-functions.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
4 plugin tags: proposals, proposal, client, invoices

wp-proposals/wp-proposals.php Passed 13 tests

The main PHP script in "WP Proposals" version 2.3 is automatically included on every request by WordPress
101 characters long description:
Beautiful, simple free WordPress proposal software. Transform your sales team into a closing machine.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,581 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP244932292,334
CSS312121,242
JavaScript1325

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions73
▷ Named functions73100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/settings/assets/invoice.png2.02KB1.27KB▼ 37.01%