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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.23 ▲1.63 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.86 ▼2.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.78 ▼2.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.30 ▲1.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.15 ▼1.06 | 1.93 ▼0.06 | 39.57 ▼4.13 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲0.06 | 106.09 ▼3.07 | 41.53 ▼4.63 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.02 | 40.14 ▼0.42 | 35.21 ▼5.35 |
Add New Post /wp-admin/post-new.php | 1,534 ▲17 | 23.15 ▲5.62 | 640.47 ▼32.41 | 57.67 ▲4.77 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.02 | 99.02 ▲0.08 | 44.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 2,335 | 6,941 | 15,489 |
Markdown | 10 | 1,012 | 0 | 3,221 |
CSS | 5 | 491 | 89 | 2,930 |
JavaScript | 5 | 237 | 898 | 2,694 |
JSON | 7 | 0 | 0 | 488 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
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 code | 0.51 |
Average class complexity | 15.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 71 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 71 | 100.00% |
▷ Final classes | 9 | 12.68% |
Methods | 751 | |
▷ Static methods | 80 | 10.65% |
▷ Public methods | 626 | 83.36% |
▷ Protected methods | 4 | 0.53% |
▷ Private methods | 121 | 16.11% |
Functions | 206 | |
▷ Named functions | 113 | 54.85% |
▷ Anonymous functions | 93 | 45.15% |
Constants | 56 | |
▷ Global constants | 1 | 1.79% |
▷ Class constants | 55 | 98.21% |
▷ Public constants | 55 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/fs-press-icon.png | 1.46KB | 1.49KB | 0.00% |
admin/img/fs-press-16x16.png | 0.67KB | 0.67KB | 0.29% |
admin/img/fs-press.png | 155.30KB | 15.83KB | ▼ 89.81% |