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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 39.93 ▼0.37 |
Dashboard /wp-admin | 3.69 ▲0.39 | 49.03 ▲2.69 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 48.81 ▲0.98 |
Add New Post /wp-admin/post-new.php | 3.51 ▼2.38 | 36.19 ▼50.90 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.31 ▼1.06 | 1.68 ▼0.01 | 42.06 ▼2.87 |
Dashboard /wp-admin | 2,235 ▲47 | 4.85 ▼1.01 | 99.72 ▼1.13 | 88.33 ▲42.65 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.01 ▲0.01 | 35.21 ▼1.83 | 31.89 ▼6.16 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.03 ▼0.15 | 759.57 ▲145.36 | 60.69 ▲6.33 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.21 ▼0.09 | 96.67 ▲1.21 | 64.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 352 | 7,049 | 10,323 | 48,848 |
JavaScript | 2 | 726 | 620 | 5,834 |
Markdown | 32 | 839 | 0 | 4,824 |
GraphQL | 5 | 87 | 12 | 625 |
SVG | 2 | 0 | 1 | 281 |
JSON | 7 | 23 | 0 | 259 |
PO File | 1 | 11 | 15 | 55 |
CSS | 2 | 29 | 0 | 54 |
YAML | 2 | 8 | 3 | 49 |
XML | 1 | 5 | 0 | 41 |
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 code | 0.25 |
Average class complexity | 9.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 88.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 18 | |
Traits | 0 | |
Classes | 335 | |
▷ Abstract classes | 10 | 2.99% |
▷ Concrete classes | 325 | 97.01% |
▷ Final classes | 4 | 1.23% |
Methods | 2,434 | |
▷ Static methods | 323 | 13.27% |
▷ Public methods | 2,131 | 87.55% |
▷ Protected methods | 39 | 1.60% |
▷ Private methods | 264 | 10.85% |
Functions | 953 | |
▷ Named functions | 34 | 3.57% |
▷ Anonymous functions | 919 | 96.43% |
Constants | 157 | |
▷ Global constants | 1 | 0.64% |
▷ Class constants | 156 | 99.36% |
▷ Public constants | 156 | 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.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/javascript/d_vuefront/img/rocket.png | 18.87KB | 8.60KB | ▼ 54.44% |
view/image/logo.png | 13.06KB | 5.69KB | ▼ 56.44% |