68% code-monkeys-proposals

Code Review | CODE MONKEYS PROPOSALS - Easily create client proposals from your Wordpress admin dashboard

WordPress plugin CODE MONKEYS PROPOSALS - Easily create client proposals from your Wordpress admin dashboard scored68%from 54 tests.

About plugin

  • Plugin page: code-monkeys-prop...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2018
  • Latest release: Jan 26, 2018
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: codemonkeys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,355 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.86MB] [CPU: ▼45.77ms] Passed 4 tests

This is a short check of server-side resources used by CODE MONKEYS PROPOSALS - Easily create client proposals from your Wordpress admin dashboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1057.36 ▲15.17
Dashboard /wp-admin3.08 ▼0.2225.41 ▼35.14
Posts /wp-admin/edit.php3.08 ▼0.2727.44 ▼42.33
Add New Post /wp-admin/post-new.php3.08 ▼2.8026.90 ▼94.58
Media Library /wp-admin/upload.php3.08 ▼0.1525.64 ▼11.01
Proposals /wp-admin/options-general.php?page=code-monkeys-proposals/includes/options.php3.0827.82

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 643 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CODE MONKEYS PROPOSALS - Easily create client proposals from your Wordpress admin dashboard
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9513.23 ▼1.045.36 ▲3.4245.64 ▼4.27
Dashboard /wp-admin2,237 ▲605.75 ▲0.17100.24 ▼10.7071.06 ▲25.18
Posts /wp-admin/edit.php2,145 ▲422.19 ▲0.2040.76 ▼9.0251.88 ▲9.17
Add New Post /wp-admin/post-new.php1,559 ▲3323.32 ▲2.36726.92 ▼21.5153.49 ▲4.02
Media Library /wp-admin/upload.php1,439 ▲394.32 ▲0.17105.80 ▼3.5857.65 ▲7.88
Proposals /wp-admin/options-general.php?page=code-monkeys-proposals/includes/options.php8201.7427.8938.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=code-monkeys-proposals/includes/options.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 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
Please take a closer look at the following
  • 43× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(other/ide_stubs/libsodium.php): failed to open stream: No such file or directory in wp-content/plugins/code-monkeys-proposals/includes/vendor/paragonie/random_compat/psalm-autoload.php on line 6
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Mpdf.php:54
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/S25.php:10
    • > PHP Fatal error
      require_once(): Failed opening required 'other/ide_stubs/libsodium.php' (include_path='.:/usr/share/php') in wp-content/plugins/code-monkeys-proposals/includes/vendor/paragonie/random_compat/psalm-autoload.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/Imb.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\TTFontFile' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/TTFontFileAnalysis.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/code-monkeys-proposals/enqueue.php:47
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/BarcodeException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/Codabar.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/I25.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: sow, web development, scope of work, proposals, web design...

code-monkeys-proposals/code-monkeys-proposals.php Passed 13 tests

Analyzing the main PHP file in "CODE MONKEYS PROPOSALS - Easily create client proposals from your Wordpress admin dashboard" version 1.0.1
88 characters long description:
Create and generate custom web design and development proposals quickly and efficiently.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin121,974 lines of code in 226 files:
LanguageFilesBlank linesComment linesLines of code
PHP2068,25710,213119,296
CSS3170271,076
Markdown62120757
JSON5290446
JavaScript16877290
XML39066
YAML17040
Bourne Shell1203

PHP code 0% from 2 tests

Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 7,587)
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 1,518)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity161.65
▷ Minimum class complexity1.00
▷ Maximum class complexity7,587.00
Average method complexity18.35
▷ Minimum method complexity1.00
▷ Maximum method complexity1,518.00
Code structure
Namespaces21
Interfaces5
Traits2
Classes103
▷ Abstract classes32.91%
▷ Concrete classes10097.09%
▷ Final classes00.00%
Methods1,039
▷ Static methods797.60%
▷ Public methods90186.72%
▷ Protected methods302.89%
▷ Private methods10810.39%
Functions33
▷ Named functions2781.82%
▷ Anonymous functions618.18%
Constants385
▷ Global constants82.08%
▷ Class constants37797.92%
▷ Public constants377100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo-faint.png28.40KB10.84KB▼ 61.82%