Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.37ms] Passed 4 tests
This is a short check of server-side resources used by Village Client Area
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 38.47 ▼2.08 |
Dashboard /wp-admin | 3.45 ▲0.10 | 48.06 ▼10.69 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.75 ▼1.27 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 92.22 ▼3.42 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.06 ▲3.95 |
Add New /wp-admin/post-new.php?post_type=client_gallery | 3.50 | 48.59 |
All Galleries /wp-admin/edit.php?post_type=client_gallery | 3.41 | 36.32 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Village Client Area
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.21 ▼1.16 | 4.69 ▲3.04 | 39.82 ▼8.22 |
Dashboard /wp-admin | 2,233 ▲45 | 4.86 ▼0.96 | 99.52 ▼6.54 | 39.51 ▼5.40 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.02 ▲0.02 | 39.58 ▲2.81 | 34.31 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.20 ▲0.19 | 588.08 ▼98.99 | 59.26 ▼4.54 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.25 ▲0.07 | 95.15 ▼8.11 | 41.92 ▼1.50 |
Add New /wp-admin/post-new.php?post_type=client_gallery | 2,507 | 7.70 | 188.58 | 71.58 |
All Galleries /wp-admin/edit.php?post_type=client_gallery | 1,111 | 1.95 | 31.89 | 29.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/village-client-area/templates/global/wrapper-end.php
- > /wp-content/plugins/village-client-area/templates/global/wrapper-start.php
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/village-client-area/layout/template-functions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/village-client-area/templates/protected/protected-content.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function VCA() in wp-content/plugins/village-client-area/includes/options.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/village-client-area/includes/enqueue.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function vca_get_template_part() in wp-content/plugins/village-client-area/templates/single-client_gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/village-client-area/templates/single/content-description.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/village-client-area/templates/single/image-actions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/village-client-area/templates/client-comments.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/village-client-area/templates/single/layout.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/village-client-area/templates/single/js-markup.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
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
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== village-client-area ===
)
village-client-area/village-client-area.php 92% from 13 tests
The main PHP file in "Village Client Area" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,076 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,158 | 1,914 | 4,096 |
PHP | 34 | 543 | 281 | 1,342 |
CoffeeScript | 17 | 214 | 62 | 429 |
Sass | 6 | 109 | 5 | 208 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 25 | 59.52% |
▷ Public methods | 41 | 97.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.38% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected