Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼1.30MB] [CPU: ▼40.10ms] Passed 4 tests
An overview of server-side resources used by VRPConnector
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.69 ▼0.77 | 7.74 ▼33.01 |
Dashboard /wp-admin | 2.71 ▼0.59 | 392.15 ▲337.42 |
Posts /wp-admin/edit.php | 2.71 ▼0.65 | 10.30 ▼39.19 |
Add New Post /wp-admin/post-new.php | 2.71 ▼3.18 | 10.11 ▼87.63 |
Media Library /wp-admin/upload.php | 2.71 ▼0.52 | 35.64 ▼0.57 |
VRPConnector /wp-admin/options-general.php?page=VRPConnector | 2.71 | 9.59 |
Server storage [IO: ▲4.82MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- You have illegally modified 158 files (4,547.54KB) outside of "wp-content/plugins/vrpconnector/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/vrp/desertsunrise/css/font-awesome.css
- (new file) wp-content/themes/twentytwentyone/vrp/default_functions.php
- (new file) wp-content/themes/twentytwentyone/vrp/desertsunrise/css/booking.custom.css
- (new file) wp-content/themes/twentytwentyone/vrp/desertsunrise/complex.php
- (new file) wp-content/themes/twentytwentyone/vrp/desertsunrise/css/css.css
- (new file) wp-content/themes/twentytwentyone/vrp/desertsunrise/css/bootstrap.min.css
- (new file) wp-content/themes/twentytwentyone/vrp/desertsunrise/confirm.php
- (new file) wp-content/themes/twentytwentyone/vrp/desertsunrise/booking.php
- (new file) wp-content/themes/twentytwentyone/vrp/desertsunrise/css/jquery-ui-1.12.1.custom/AUTHORS.txt
- (new file) wp-content/themes/twentytwentyone/vrp/desertsunrise/css/jquery-ui-1.12.1.custom/LICENSE.txt
- ...
Filesystem: 347 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_vrpsearch_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VRPConnector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲179 | 15.88 ▲1.23 | 57.48 ▲55.40 | 50.11 ▲4.88 |
Dashboard /wp-admin | 2,205 ▲25 | 5.55 ▼0.06 | 84.83 ▼11.98 | 42.46 ▼0.77 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 2.01 ▲0.03 | 40.71 ▲2.19 | 37.96 ▲2.64 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 24.31 ▲1.34 | 616.21 ▼37.54 | 70.29 ▲13.11 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.19 ▼0.07 | 107.49 ▲2.81 | 43.78 ▼4.46 |
VRPConnector /wp-admin/options-general.php?page=VRPConnector | 926 | 2.01 | 21.72 | 44.47 |
Uninstaller [IO: ▲4.44MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/vrpconnector/lib/VRPConnector.php+347
mkdir(): File exists
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_vrpsearch_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 19 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=VRPConnector
- > Warning in wp-content/plugins/vrpconnector/lib/VRPConnector.php+347
mkdir(): File exists
- > GET request to /wp-admin/options-general.php?page=VRPConnector
- > Warning in wp-content/plugins/vrpconnector/views/settings.php+53
Creating default object from empty value
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 18× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/vrpconnector/themes/mountainsunset/vrpShort.php
- > /wp-content/plugins/vrpconnector/lib/xml.php
- > /wp-content/plugins/vrpconnector/themes/desertsunrise/vrpComplexes.php
- > /wp-content/plugins/vrpconnector/themes/desertsunrise/ratebreakdown.php
- > /wp-content/plugins/vrpconnector/themes/desertsunrise/booking.php
- > /wp-content/plugins/vrpconnector/themes/mountainsunset/special.php
- > /wp-content/plugins/vrpconnector/themes/mountainsunset/specials.php
- > /wp-content/plugins/vrpconnector/themes/mountainsunset/booking.php
- > /wp-content/plugins/vrpconnector/themes/mountainsunset/vrpSpecials.php
- > /wp-content/plugins/vrpconnector/themes/desertsunrise/special.php
- 187× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/vrpconnector/themes/desertsunrise/vrpCheckUnitAvailabilityForm.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/vrpconnector/vendor/eluceo/ical/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/vrpconnector/vendor/eluceo/ical/examples/example1.php on line 4
- > PHP Warning
include(): Failed opening 'Parsedown.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/vrpconnector/vendor/erusev/parsedown/test/bootstrap.php on line 3
- > PHP Notice
Undefined variable: data in wp-content/plugins/vrpconnector/themes/desertsunrise/vrpFeaturedUnit.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/vrpconnector/vendor/erusev/parsedown/test/CommonMarkTest.php:11
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/vrpconnector/vendor/eluceo/ical/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/vrpconnector/vendor/eluceo/ical/examples/example5.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Eluceo\\iCal\\Component' not found in wp-content/plugins/vrpconnector/vendor/eluceo/ical/src/Eluceo/iCal/Component/Calendar.php:17
- > PHP Notice
Undefined variable: _SESSION in wp-content/plugins/vrpconnector/themes/desertsunrise/results.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/vrpconnector/themes/desertsunrise/results.php on line 16
- > PHP Notice
Undefined variable: data in wp-content/plugins/vrpconnector/themes/desertsunrise/special.php on line 9
- > PHP Notice
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 94% 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
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== vrpconnector ===
)
vrpconnector/VRPConnector.php 92% from 13 tests
The principal PHP file in "VRPConnector" v. 2.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("vrpconnector.php" instead of "VRPConnector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin63,650 lines of code in 262 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 9,467 | 7,280 | 41,311 |
PHP | 103 | 2,781 | 2,889 | 10,848 |
CSS | 18 | 586 | 452 | 8,948 |
HTML | 52 | 184 | 34 | 1,247 |
SVG | 1 | 0 | 0 | 565 |
Markdown | 56 | 205 | 0 | 447 |
JSON | 6 | 6 | 0 | 213 |
YAML | 3 | 8 | 0 | 45 |
XML | 2 | 1 | 0 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 228.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 482 | |
▷ Static methods | 12 | 2.49% |
▷ Public methods | 413 | 85.68% |
▷ Protected methods | 42 | 8.71% |
▷ Private methods | 27 | 5.60% |
Functions | 43 | |
▷ Named functions | 29 | 67.44% |
▷ Anonymous functions | 14 | 32.56% |
Constants | 39 | |
▷ Global constants | 2 | 5.13% |
▷ Class constants | 37 | 94.87% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.18MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/desertsunrise/images/fav.png | 0.82KB | 0.81KB | ▼ 1.90% |
themes/desertsunrise/images/cal.png | 0.22KB | 0.19KB | ▼ 14.54% |
themes/mountainsunset/images/gslogo.png | 1.91KB | 0.89KB | ▼ 53.45% |
themes/mountainsunset/css/jquery-ui-1.11.2.custom/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
themes/mountainsunset/css/jquery-ui-1.11.2.custom/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |