84% wp-vue

Code Review | Wp Vue

WordPress plugin Wp Vue scored84%from 54 tests.

About plugin

  • Plugin page: wp-vue
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2020
  • Latest release: Jan 28, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: tristup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,869 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.50ms] Passed 4 tests

An overview of server-side resources used by Wp Vue
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.33 ▼7.59
Dashboard /wp-admin3.31 ▼0.0343.84 ▼16.20
Posts /wp-admin/edit.php3.36 ▲0.0146.51 ▼0.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.39 ▼13.47
Media Library /wp-admin/upload.php3.24 ▲0.0135.81 ▼0.67

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Wp Vue
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.40 ▼1.001.69 ▼0.7842.58 ▼3.41
Dashboard /wp-admin2,206 ▲184.85 ▼0.06108.83 ▼16.0342.40 ▼0.36
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0039.88 ▲2.7634.79 ▼1.46
Add New Post /wp-admin/post-new.php1,533 ▲1923.26 ▲5.53611.29 ▼58.3057.77 ▲2.54
Media Library /wp-admin/upload.php1,391 ▲94.27 ▲0.0598.96 ▼0.0742.86 ▼1.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • 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 | 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-vue/templates/wp-vue-template.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: shortcodes, vue, wordpress, vue js

wp-vue/wp-vue.php 85% from 13 tests

The primary PHP file in "Wp Vue" version 0.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path must begin with a forward slash character ("/")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected8,715 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,0751,3598,576
PHP271398
CSS11041

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot/screenshot1.png7.88KB3.23KB▼ 59.02%