68% moovly

Code Review | Moovly

WordPress plugin Moovly scored68%from 54 tests.

About plugin

  • Plugin page: moovly
  • Plugin version: 1.2.17
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: Aug 8, 2018
  • Latest release: Aug 16, 2023
  • Number of updates: 113
  • Update frequency: every 16.4 days
  • Top authors: moovly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,986 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.17 ▲0.7145.38 ▲2.52
Dashboard /wp-admin4.01 ▲0.7155.11 ▲2.64
Posts /wp-admin/edit.php4.06 ▲0.7053.59 ▼0.22
Add New Post /wp-admin/post-new.php6.60 ▲0.7298.55 ▲5.79
Media Library /wp-admin/upload.php3.87 ▲0.6442.59 ▲7.45
Settings /wp-admin/admin.php?page=moovly-settings3.8438.12
Moovly /wp-admin/admin.php?page=moovly3.8438.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.34 ▲0.101.67 ▼0.0438.97 ▼3.80
Dashboard /wp-admin2,224 ▲445.58 ▼0.0687.61 ▼10.4780.71 ▲37.73
Posts /wp-admin/edit.php2,132 ▲291.98 ▼0.0140.94 ▲1.5433.43 ▼3.65
Add New Post /wp-admin/post-new.php1,563 ▲3223.25 ▲0.19649.83 ▼36.8067.46 ▲6.67
Media Library /wp-admin/upload.php1,426 ▲264.23 ▲0.0499.94 ▼12.3379.18 ▲29.54
Settings /wp-admin/admin.php?page=moovly-settings1,2292.7458.49160.74
Moovly /wp-admin/admin.php?page=moovly9232.5449.8857.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

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 === )
You can look at the official readme.txt

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
60,435 lines of code in 459 files:
LanguageFilesBlank linesComment linesLines of code
PHP4037,78917,22152,228
Markdown241,42304,257
JSON18001,988
JavaScript21241131,548
XML5220281
Pascal2417479
SVG10118
YAML14017
Dockerfile18010
CSS11176
Bourne Shell1203

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 code0.28
Average class complexity9.93
▷ Minimum class complexity1.00
▷ Maximum class complexity238.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces63
Interfaces34
Traits6
Classes315
▷ Abstract classes61.90%
▷ Concrete classes30998.10%
▷ Final classes299.39%
Methods2,742
▷ Static methods30311.05%
▷ Public methods2,42688.48%
▷ Protected methods1174.27%
▷ Private methods1997.26%
Functions310
▷ Named functions13944.84%
▷ Anonymous functions17155.16%
Constants326
▷ Global constants4413.50%
▷ Class constants28286.50%
▷ Public constants282100.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
FileSize - originalSize - compressedSavings
dist/images/moovly.png13.88KB4.31KB▼ 68.96%
dist/images/moovly_small.png0.74KB0.53KB▼ 28.50%