78% synergy-press

Code Review | Synergy Press

WordPress plugin Synergy Press scored78%from 54 tests.

About plugin

  • Plugin page: synergy-press
  • Plugin version: 1.6.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Jan 15, 2020
  • Latest release: Sep 7, 2020
  • Number of updates: 29
  • Update frequency: every 8.6 days
  • Top authors: formsynergy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /589 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.72ms] Passed 4 tests

A check of server-side resources used by Synergy Press
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.23 ▲1.63
Dashboard /wp-admin3.31 ▲0.0043.86 ▼2.34
Posts /wp-admin/edit.php3.36 ▲0.0043.78 ▼2.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.30 ▲1.41
Media Library /wp-admin/upload.php3.23 ▲0.0029.93 ▼3.21

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Synergy Press
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.15 ▼1.061.93 ▼0.0639.57 ▼4.13
Dashboard /wp-admin2,206 ▲185.88 ▲0.06106.09 ▼3.0741.53 ▼4.63
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0240.14 ▼0.4235.21 ▼5.35
Add New Post /wp-admin/post-new.php1,534 ▲1723.15 ▲5.62640.47 ▼32.4157.67 ▲4.77
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0299.02 ▲0.0844.64 ▲1.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/synergy-press/synergy-press.php
  • 44× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/psr7/src/Response.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/psr7/src/Uri.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/guzzle/src/Pool.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/guzzle/src/Client.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/promises/src/AggregateException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/synergy-press/admin/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Requires php: Invalid plugin version format
Please take inspiration from this readme.txt

synergy-press/synergy-press.php Passed 13 tests

The main PHP file in "Synergy Press" ver. 1.6.0.5 adds more information about the plugin and also serves as the entry point for this plugin
107 characters long description:
Build and package your forms in a real time engagement strategy and maximize on every possible opportunity.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin24,841 lines of code in 165 files:
LanguageFilesBlank linesComment linesLines of code
PHP1362,3356,94115,489
Markdown101,01203,221
CSS5491892,930
JavaScript52378982,694
JSON700488
Dockerfile18010
make1409

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity15.77
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces10
Interfaces15
Traits2
Classes71
▷ Abstract classes00.00%
▷ Concrete classes71100.00%
▷ Final classes912.68%
Methods751
▷ Static methods8010.65%
▷ Public methods62683.36%
▷ Protected methods40.53%
▷ Private methods12116.11%
Functions206
▷ Named functions11354.85%
▷ Anonymous functions9345.15%
Constants56
▷ Global constants11.79%
▷ Class constants5598.21%
▷ Public constants55100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/fs-press-icon.png1.46KB1.49KB0.00%
admin/img/fs-press-16x16.png0.67KB0.67KB0.29%
admin/img/fs-press.png155.30KB15.83KB▼ 89.81%