74% vuefront

Code Review | VueFront PWA & SPA

WordPress plugin VueFront PWA & SPA scored74%from 54 tests.

About plugin

  • Plugin page: vuefront
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Aug 7, 2019
  • Latest release: Feb 7, 2022
  • Number of updates: 16
  • Update frequency: every 57.2 days
  • Top authors: vuefront (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,024 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 gracefully, with no errors

Server metrics [RAM: ▼0.30MB] [CPU: ▼11.90ms] Passed 4 tests

A check of server-side resources used by VueFront PWA & SPA
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3939.93 ▼0.37
Dashboard /wp-admin3.69 ▲0.3949.03 ▲2.69
Posts /wp-admin/edit.php3.74 ▲0.3948.81 ▲0.98
Add New Post /wp-admin/post-new.php3.51 ▼2.3836.19 ▼50.90
Media Library /wp-admin/upload.php3.62 ▲0.3939.95 ▲5.35

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 420 new files
Database: 1 new table, 6 new options
New tables
wp_vuefront_url
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for VueFront PWA & SPA
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.31 ▼1.061.68 ▼0.0142.06 ▼2.87
Dashboard /wp-admin2,235 ▲474.85 ▼1.0199.72 ▼1.1388.33 ▲42.65
Posts /wp-admin/edit.php2,118 ▲292.01 ▲0.0135.21 ▼1.8331.89 ▼6.16
Add New Post /wp-admin/post-new.php1,540 ▲723.03 ▼0.15759.57 ▲145.3660.69 ▲6.33
Media Library /wp-admin/upload.php1,405 ▲174.21 ▼0.0996.67 ▲1.2164.60 ▲22.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_vuefront_url
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 283× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GraphQL\\Language\\AST\ode' not found in wp-content/plugins/vuefront/system/vendor/webonyx/graphql-php/src/Language/AST/DirectiveNode.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'VFA_Resolver' not found in wp-content/plugins/vuefront/resolver/store/review.php:3
    • > PHP Warning
      Class 'GraphQL\\Language\\AST\\DefinitionNode' not found in wp-content/plugins/vuefront/system/vendor/webonyx/graphql-php/src/deprecated.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'GraphQL\\Type\\Definition\\Type' not found in wp-content/plugins/vuefront/system/vendor/webonyx/graphql-php/src/Type/Definition/InterfaceType.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GraphQL\\Error\\Error' not found in wp-content/plugins/vuefront/system/vendor/webonyx/graphql-php/src/Error.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'GraphQL\\Tests\\Validator\\TestCase' not found in wp-content/plugins/vuefront/system/vendor/webonyx/graphql-php/tests/Validator/UniqueFragmentNamesTest.php:8
    • > PHP Warning
      Class 'GraphQL\\Language\\AST\amedTypeNode' not found in wp-content/plugins/vuefront/system/vendor/webonyx/graphql-php/src/deprecated.php on line 24
    • > PHP Fatal error
      Uncaught Error: Interface 'GraphQL\\Executor\\Promise\\PromiseAdapter' not found in wp-content/plugins/vuefront/system/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromiseAdapter.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'GraphQL\\Type\\Definition\\ScalarType' not found in wp-content/plugins/vuefront/system/vendor/webonyx/graphql-php/src/Type/Definition/CustomScalarType.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GraphQL\\Validator\\Rules\\AbstractValidationRule' not found in wp-content/plugins/vuefront/system/vendor/webonyx/graphql-php/src/Validator/Rules/LoneAnonymousOperation.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can look at the official readme.txt

vuefront/plugin.php 92% from 13 tests

Analyzing the main PHP file in "VueFront PWA & SPA" version 2.1.2
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vuefront.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin60,870 lines of code in 406 files:
LanguageFilesBlank linesComment linesLines of code
PHP3527,04910,32348,848
JavaScript27266205,834
Markdown3283904,824
GraphQL58712625
SVG201281
JSON7230259
PO File1111555
CSS229054
YAML28349
XML15041

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.09
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity88.00
Code structure
Namespaces33
Interfaces18
Traits0
Classes335
▷ Abstract classes102.99%
▷ Concrete classes32597.01%
▷ Final classes41.23%
Methods2,434
▷ Static methods32313.27%
▷ Public methods2,13187.55%
▷ Protected methods391.60%
▷ Private methods26410.85%
Functions953
▷ Named functions343.57%
▷ Anonymous functions91996.43%
Constants157
▷ Global constants10.64%
▷ Class constants15699.36%
▷ Public constants156100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
view/javascript/d_vuefront/img/rocket.png18.87KB8.60KB▼ 54.44%
view/image/logo.png13.06KB5.69KB▼ 56.44%