Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼4.00ms] Passed 4 tests
Server-side resources used by WP Component
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.30 ▲1.12 |
Dashboard /wp-admin | 3.71 ▲0.41 | 46.36 ▼3.49 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 48.10 ▼2.43 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 98.32 ▼3.61 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 37.05 ▼6.47 |
WP Component /wp-admin/options-general.php?page=wpcomponent | 3.54 | 47.20 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
wpcomponent_setting_enable_inside_the_content |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Component
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲119 | 14.45 ▼0.19 | 1.64 ▼0.26 | 41.90 ▲0.12 |
Dashboard /wp-admin | 2,275 ▲84 | 6.57 ▲1.68 | 151.25 ▲46.70 | 40.97 ▼2.51 |
Posts /wp-admin/edit.php | 2,174 ▲85 | 3.45 ▲1.42 | 83.98 ▲43.82 | 33.85 ▼1.58 |
Add New Post /wp-admin/post-new.php | 6,626 ▲5,084 | 23.41 ▲5.31 | 948.63 ▲276.86 | 41.51 ▼13.75 |
Media Library /wp-admin/upload.php | 1,450 ▲65 | 5.48 ▲1.23 | 116.89 ▲17.58 | 42.21 ▼1.07 |
WP Component /wp-admin/options-general.php?page=wpcomponent | 1,095 | 3.83 | 77.36 | 58.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- wpcomponent_setting_enable_inside_the_content
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_wpcomponent() in wp-content/plugins/wpcomponent/templates/inside-container/double-col.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function the_wpcomponent() in wp-content/plugins/wpcomponent/templates/outside-container/triple-col.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpcomponent/index.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function the_wpcomponent() in wp-content/plugins/wpcomponent/templates/outside-container/double-col.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpcomponent/core/inc/wpc_content.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function the_wpcomponent() in wp-content/plugins/wpcomponent/macro-template-example.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function the_wpcomponent() in wp-content/plugins/wpcomponent/templates/inside-container/triple-col.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: components, landing-page, component, template, visual composer...
wpcomponent/index.php 92% from 13 tests
This is the main PHP file of "WP Component" version 2.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpcomponent.php" instead of "index.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
Success! There were no dangerous files found in this plugin3,346 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,134 | 507 | 2,299 |
JavaScript | 4 | 344 | 718 | 928 |
PO File | 1 | 31 | 31 | 83 |
SVG | 3 | 0 | 0 | 29 |
CSS | 1 | 6 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 23.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 5 | 6.76% |
▷ Public methods | 74 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/images/damier.png | 0.09KB | 0.09KB | 0.00% |
front/images/wpcomponent-icon-16.png | 0.11KB | 0.11KB | 0.00% |