84% wp-vue-by-shaanz

Code Review | WP Vue by Shaanz

WordPress plugin WP Vue by Shaanz scored84%from 54 tests.

About plugin

  • Plugin page: wp-vue-by-shaanz
  • Plugin version: 0.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.0.1
  • WordPress version: 6.3.1
  • First release: Dec 14, 2018
  • Latest release: Dec 15, 2018
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: shaanztech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /769 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.76ms] Passed 4 tests

Analyzing server-side resources used by WP Vue by Shaanz
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.17 ▲4.15
Dashboard /wp-admin3.32 ▲0.0246.49 ▲0.16
Posts /wp-admin/edit.php3.37 ▲0.0244.43 ▲2.28
Add New Post /wp-admin/post-new.php5.93 ▲0.0579.38 ▼15.43
Media Library /wp-admin/upload.php3.24 ▲0.0231.85 ▼2.04
WP Vue /wp-admin/options-general.php?page=shaanz_wp_vue_settings3.2128.76

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Vue by Shaanz
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.14 ▼0.201.72 ▲0.2549.46 ▲10.19
Dashboard /wp-admin2,196 ▲155.53 ▼0.2586.15 ▼11.5636.79 ▼6.31
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0333.73 ▼3.0433.94 ▼1.51
Add New Post /wp-admin/post-new.php6,264 ▲4,73626.11 ▲3.05927.45 ▲247.9068.64 ▲11.16
Media Library /wp-admin/upload.php1,404 ▲44.16 ▲0.0094.49 ▼16.8142.65 ▼2.40
WP Vue /wp-admin/options-general.php?page=shaanz_wp_vue_settings8581.9921.9829.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-vue-by-shaanz/wp-vue-by-shaanz.php

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

wp-vue-by-shaanz/wp-vue-by-shaanz.php Passed 13 tests

Analyzing the main PHP file in "WP Vue by Shaanz" version 0.2.4
106 characters long description:
WP Vue adds the power of VueJS to Wordpress. This plugin loads the VueJS script to the page that you want.

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
Everything looks great! No dangerous files found in this plugin596 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP16192263578
JSON20018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity8.10
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes220.00%
Methods44
▷ Static methods1022.73%
▷ Public methods4193.18%
▷ Protected methods00.00%
▷ Private methods36.82%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin