Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.10MB] [CPU: ▲8.55ms] Passed 4 tests
A check of server-side resources used by GreenCon - Table, Listing, Marketing builder for Gutenberg
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.60 ▲1.14 | 56.05 ▲8.89 |
Dashboard /wp-admin | 4.39 ▲1.08 | 56.09 ▲4.76 |
Posts /wp-admin/edit.php | 4.44 ▲1.08 | 62.62 ▲8.38 |
Add New Post /wp-admin/post-new.php | 7.08 ▲1.19 | 107.08 ▲21.03 |
Media Library /wp-admin/upload.php | 4.31 ▲1.08 | 47.10 ▲12.15 |
Global Options /wp-admin/admin.php?page=gutenconopt | 4.21 | 36.38 |
Greencon /wp-admin/admin.php?page=greencon | 4.21 | 38.97 |
Server storage [IO: ▲2.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for GreenCon - Table, Listing, Marketing builder for Gutenberg
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 13.25 ▼1.06 | 1.71 ▼0.13 | 40.24 ▼3.86 |
Dashboard /wp-admin | 2,248 ▲42 | 5.90 ▲0.01 | 109.33 ▲9.60 | 40.33 ▼4.26 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.04 ▲0.06 | 41.88 ▲5.49 | 36.28 ▼3.78 |
Add New Post /wp-admin/post-new.php | 6,396 ▲4,864 | 29.69 ▲6.56 | 939.76 ▲334.65 | 40.34 ▼18.26 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.26 ▲0.03 | 110.64 ▲5.08 | 46.41 ▲2.27 |
Global Options /wp-admin/admin.php?page=gutenconopt | 846 | 2.02 | 24.75 | 26.91 |
Greencon /wp-admin/admin.php?page=greencon | 1,403 | 10.26 | 281.32 | 74.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function GutenCon\\wp_die() in wp-content/plugins/greencon/greencon.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/greencon/admin/gutenconstart.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/greencon/admin/gutenconnew.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/greencon/admin/class-admin.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% 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
3 plugin tags: seo, gutenberg, marketing
greencon/greencon.php 92% from 13 tests
"GreenCon - Table, Listing, Marketing builder for Gutenberg" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected55,185 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 10 | 0 | 0 | 49,048 |
PHP | 33 | 549 | 215 | 4,406 |
JavaScript | 17 | 105 | 42 | 1,072 |
CSS | 29 | 31 | 11 | 415 |
XML | 1 | 0 | 0 | 244 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 22.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 5.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 1 | 3.57% |
Methods | 123 | |
▷ Static methods | 27 | 21.95% |
▷ Public methods | 86 | 69.92% |
▷ Protected methods | 35 | 28.46% |
▷ Private methods | 2 | 1.63% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/rhlinkhider.png | 15.91KB | 5.45KB | ▼ 65.75% |
build/images/drag-icon.8870ef4d.png | 11.99KB | 5.52KB | ▼ 53.94% |
assets/icons/noimage-placeholder.png | 1.72KB | 0.48KB | ▼ 71.94% |