Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Error in wp-content/plugins/team-vs/team-vs.php+35
Uncaught Error: Class 'vcore\base\Vsactivate' not found in wp-content/plugins/team-vs/team-vs.php:35
Stack trace:
#0 wp-includes/class-wp-hook.php(303): Team_VS_activation()
#1 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(470): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(698): do_action()
Server metrics [RAM: ▼0.00MB] [CPU: ▼142.75ms] Passed 4 tests
Server-side resources used by VS Team - Team Showcase WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 36.86 ▲16.11 |
Dashboard /wp-admin | 3.06 ▲0.00 | 50.52 ▲6.56 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 46.92 ▲1.09 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 94.44 ▼581.94 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 37.83 ▲3.30 |
Server storage [IO: ▲15.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for VS Team - Team Showcase WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.84 ▲0.12 | 9.59 ▼1.70 | 48.96 ▼0.57 |
Dashboard /wp-admin | 2,970 ▲36 | 5.87 ▼0.29 | 156.93 ▼19.74 | 106.87 ▼14.40 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 74.41 ▼0.71 | 87.08 ▼5.14 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.79 ▼2.52 | 421.19 ▲110.59 | 111.28 ▲5.81 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.04 ▲0.02 | 158.52 ▲6.26 | 119.29 ▼0.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/team-vs/vcore/pages/vshortcodequery.php
- > /wp-content/plugins/team-vs/vcore/base/vshortcodecpt.php
- > /wp-content/plugins/team-vs/vcore/base/vsactivate.php
- > /wp-content/plugins/team-vs/vcore/base/basecontroller.php
- > /wp-content/plugins/team-vs/vcore/base/vsmemberslug.php
- > /wp-content/plugins/team-vs/team-vs.php
- > /wp-content/plugins/team-vs/vcore/base/vsteamcpt.php
- > /wp-content/plugins/team-vs/vcore/vsinit.php
- > /wp-content/plugins/team-vs/vcore/base/vsenqueue.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
team-vs/team-vs.php 92% from 13 tests
The main PHP script in "VS Team - Team Showcase WordPress" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected53,736 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 20 | 51,779 |
PHP | 22 | 294 | 276 | 1,083 |
CSS | 3 | 153 | 14 | 850 |
JSON | 2 | 0 | 0 | 22 |
JavaScript | 2 | 0 | 10 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 17 | 25.00% |
▷ Public methods | 67 | 98.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.47% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin