Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.81MB] [CPU: ▼290.51ms] Passed 4 tests
This is a short check of server-side resources used by Display Custom Fields - wpView
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.40 ▲0.89 | 56.28 ▲3.66 |
Dashboard /wp-admin | 4.25 ▲0.84 | 39.17 ▲4.35 |
Posts /wp-admin/edit.php | 4.47 ▲0.83 | 42.01 ▲5.16 |
Add New Post /wp-admin/post-new.php | 7.74 ▲0.74 | 95.29 ▼1,170.72 |
Media Library /wp-admin/upload.php | 4.13 ▲0.83 | 26.52 ▲0.67 |
Field Settings /wp-admin/admin.php?page=wpview | 4.09 | 23.53 |
Colors & Styles /wp-admin/admin.php?page=wpview_colors_and_styles | 4.09 | 25.57 |
Server storage [IO: ▲0.61MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 55 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wpview_options_views |
wpview_options_colors |
Browser metrics Passed 4 tests
An overview of browser requirements for Display Custom Fields - wpView
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,846 ▲104 | 16.12 ▲0.46 | 6.09 ▼1.32 | 2.99 ▲0.56 |
Dashboard /wp-admin | 2,940 ▲79 | 6.19 ▲0.03 | 120.62 ▼10.55 | 155.81 ▼7.94 |
Posts /wp-admin/edit.php | 2,737 ▲49 | 3.26 ▲0.02 | 74.37 ▲10.19 | 155.00 ▲9.20 |
Add New Post /wp-admin/post-new.php | 1,700 ▼52 | 16.38 ▼4.50 | 429.96 ▼40.38 | 177.65 ▲23.98 |
Media Library /wp-admin/upload.php | 1,750 ▲52 | 5.76 ▲0.23 | 130.63 ▼4.40 | 189.55 ▼0.44 |
Field Settings /wp-admin/admin.php?page=wpview | 1,184 | 2.76 | 58.07 | 145.56 |
Colors & Styles /wp-admin/admin.php?page=wpview_colors_and_styles | 5,436 | 2.60 | 82.49 | 121.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- wpview_options_colors
- wpview_options_views
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'wpView\\views\\View' not found in wp-content/plugins/wpview/includes/wpView/views/FileView.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpView\\views\\View' not found in wp-content/plugins/wpview/includes/wpView/views/HyperlinkView.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpView\\views\\View' not found in wp-content/plugins/wpview/includes/wpView/views/DateView.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpView\\plugins\\Plugin' not found in wp-content/plugins/wpview/includes/wpView/plugins/WCKPlugin.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpView\\views\\View' not found in wp-content/plugins/wpview/includes/wpView/views/TextView.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpView\\views\\View' not found in wp-content/plugins/wpview/includes/wpView/views/SelectView.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpView\\plugins\\Plugin' not found in wp-content/plugins/wpview/includes/wpView/plugins/ACFPlugin.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpView\\views\\View' not found in wp-content/plugins/wpview/includes/wpView/views/RelationView.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpView\\views\\View' not found in wp-content/plugins/wpview/includes/wpView/views/MapView.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpView\\views\\View' not found in wp-content/plugins/wpview/includes/wpView/views/ColorView.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: front-end, custom field view, display custom field, field, custom fields...
wpview/wpview.php 85% from 13 tests
The main PHP file in "Display Custom Fields - wpView" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis 97% from 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 detected7,461 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 206 | 11 | 5,182 |
JavaScript | 8 | 147 | 58 | 1,211 |
CSS | 4 | 97 | 12 | 1,004 |
SVG | 1 | 0 | 0 | 64 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 172)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 37.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 232.00 |
Average method complexity | 9.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 172.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 2 | 8.00% |
▷ Concrete classes | 23 | 92.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 15 | 14.15% |
▷ Public methods | 70 | 66.04% |
▷ Protected methods | 23 | 21.70% |
▷ Private methods | 13 | 12.26% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpview.png | 4.45KB | 1.40KB | ▼ 68.58% |
assets/images/wpview-fields.png | 49.33KB | 19.38KB | ▼ 60.71% |
assets/images/acf.png | 2.78KB | 1.97KB | ▼ 29.13% |
assets/images/CCTM.png | 3.14KB | 2.01KB | ▼ 36.05% |
assets/images/Custom_Field_Suite.png | 2.80KB | 1.94KB | ▼ 30.81% |