Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.69MB] [CPU: ▲2.68ms] Passed 4 tests
An overview of server-side resources used by Moovly
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.17 ▲0.71 | 45.38 ▲2.52 |
Dashboard /wp-admin | 4.01 ▲0.71 | 55.11 ▲2.64 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 53.59 ▼0.22 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.72 | 98.55 ▲5.79 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 42.59 ▲7.45 |
Settings /wp-admin/admin.php?page=moovly-settings | 3.84 | 38.12 |
Moovly /wp-admin/admin.php?page=moovly | 3.84 | 38.07 |
Server storage [IO: ▲4.85MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 510 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
permission.shortcode |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Moovly
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.34 ▲0.10 | 1.67 ▼0.04 | 38.97 ▼3.80 |
Dashboard /wp-admin | 2,224 ▲44 | 5.58 ▼0.06 | 87.61 ▼10.47 | 80.71 ▲37.73 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 1.98 ▼0.01 | 40.94 ▲1.54 | 33.43 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,563 ▲32 | 23.25 ▲0.19 | 649.83 ▼36.80 | 67.46 ▲6.67 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.23 ▲0.04 | 99.94 ▼12.33 | 79.18 ▲29.54 |
Settings /wp-admin/admin.php?page=moovly-settings | 1,229 | 2.74 | 58.49 | 160.74 |
Moovly /wp-admin/admin.php?page=moovly | 923 | 2.54 | 49.88 | 57.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- permission.shortcode
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
- 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/regenerate.php
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/storage.php
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/with_samesite.php
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/read_only.php
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/empty_destroys.php
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_raw_urlencode.php
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/with_cookie_and_session.php
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_max_age.php
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_urlencode.php
- > /wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/with_samesite_and_migration.php
- 214× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\File\\MimeType\\ExtensionGuesserInterface' not found in wp-content/plugins/moovly/vendor/symfony/http-foundation/File/MimeType/MimeTypeExtensionGuesser.php:17
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/moovly/vendor/guzzlehttp/guzzle/src/Client.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/moovly/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/RequestStackTest.php:18
- > PHP Warning
Expiry date cannot have a year greater than 9999 in wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_max_age.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/moovly/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageInterface' not found in wp-content/plugins/moovly/vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php:28
- > PHP Fatal error
Uncaught Error: Class 'Moovly\\Api\\Api' not found in wp-content/plugins/moovly/src/Api/Routes/Render.php:14
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\AbstractSessionHandler' not found in wp-content/plugins/moovly/vendor/symfony/http-foundation/Session/Storage/Handler/MemcachedSessionHandler.php:22
- > PHP Warning
include(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/moovly/vendor/nicmart/string-template/benchmarks/iterator.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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 require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in moovly/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== moovly ===
)
moovly/moovly.php Passed 13 tests
Analyzing the main PHP file in "Moovly" version 1.2.17
41 characters long description:
An integration plugin for the Moovly API.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .xlsm - Excel Macro-Enabled Workbook in Microsoft Excel
- ☣ wp-content/plugins/moovly/vendor/symfony/http-foundation/Tests/File/Fixtures/case-sensitive-mime-type.xlsm
- .xlsm - Excel Macro-Enabled Workbook in Microsoft Excel
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 403 | 7,789 | 17,221 | 52,228 |
Markdown | 24 | 1,423 | 0 | 4,257 |
JSON | 18 | 0 | 0 | 1,988 |
JavaScript | 2 | 124 | 113 | 1,548 |
XML | 5 | 22 | 0 | 281 |
Pascal | 2 | 41 | 74 | 79 |
SVG | 1 | 0 | 1 | 18 |
YAML | 1 | 4 | 0 | 17 |
Dockerfile | 1 | 8 | 0 | 10 |
CSS | 1 | 1 | 17 | 6 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 238.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 63 | |
Interfaces | 34 | |
Traits | 6 | |
Classes | 315 | |
▷ Abstract classes | 6 | 1.90% |
▷ Concrete classes | 309 | 98.10% |
▷ Final classes | 29 | 9.39% |
Methods | 2,742 | |
▷ Static methods | 303 | 11.05% |
▷ Public methods | 2,426 | 88.48% |
▷ Protected methods | 117 | 4.27% |
▷ Private methods | 199 | 7.26% |
Functions | 310 | |
▷ Named functions | 139 | 44.84% |
▷ Anonymous functions | 171 | 55.16% |
Constants | 326 | |
▷ Global constants | 44 | 13.50% |
▷ Class constants | 282 | 86.50% |
▷ Public constants | 282 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/moovly.png | 13.88KB | 4.31KB | ▼ 68.96% |
dist/images/moovly_small.png | 0.74KB | 0.53KB | ▼ 28.50% |