Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▼1.36ms] Passed 4 tests
A check of server-side resources used by TGEN Template Generator for TNEW
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 39.23 ▲2.41 |
Dashboard /wp-admin | 3.72 ▲0.42 | 46.29 ▼0.32 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 50.20 ▲4.79 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 86.84 ▼10.03 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 37.14 ▲2.50 |
TGEN - Template Generator for TNEW /wp-admin/options-general.php?page=tgentg_options | 3.55 | 33.17 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 163 new files
Database: no new tables, 8 new options
New WordPress options |
---|
tgentg_generator_options |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
tgentg_main_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by TGEN Template Generator for TNEW
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.62 ▼0.52 | 4.85 ▲3.21 | 39.12 ▼3.31 |
Dashboard /wp-admin | 2,211 ▲25 | 5.84 ▼0.09 | 106.70 ▼4.12 | 40.69 ▲0.27 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▲0.02 | 40.06 ▼1.34 | 35.07 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,532 ▼10 | 18.22 ▼0.16 | 609.48 ▼9.41 | 50.91 ▼2.98 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.14 ▼0.08 | 97.21 ▼3.91 | 41.41 ▼4.64 |
TGEN - Template Generator for TNEW /wp-admin/options-general.php?page=tgentg_options | 881 | 2.06 | 23.32 | 33.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_recent-posts
- tgentg_main_options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- tgentg_generator_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/tgen-template-generator-for-tnew/public/partials/tgen-template-generator-public-display.php
- > /wp-content/plugins/tgen-template-generator-for-tnew/admin/partials/tgen-template-generator-admin-display.php
- 56× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleHtmlDomNode' not found in wp-content/plugins/tgen-template-generator-for-tnew/vendor/voku/simple_html_dom/src/voku/helper/SimpleHtmlDomNodeBlank.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/tgen-template-generator-for-tnew/vendor/symfony/css-selector/Parser/Shortcut/HashParser.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/tgen-template-generator-for-tnew/vendor/symfony/css-selector/Parser/Handler/WhitespaceHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleXmlDom' not found in wp-content/plugins/tgen-template-generator-for-tnew/vendor/voku/simple_html_dom/src/voku/helper/SimpleXmlDomBlank.php:14
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/tgen-template-generator-for-tnew/vendor/symfony/css-selector/XPath/Extension/CombinationExtension.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/tgen-template-generator-for-tnew/vendor/symfony/css-selector/Parser/Handler/HashHandler.php:30
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/tgen-template-generator-for-tnew/vendor/symfony/css-selector/Node/AttributeNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/tgen-template-generator-for-tnew/vendor/symfony/css-selector/XPath/Extension/PseudoClassExtension.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/tgen-template-generator-for-tnew/vendor/symfony/css-selector/Parser/Handler/NumberHandler.php:29
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/tgen-template-generator-for-tnew/vendor/pear/net_url2/tests/AllTests.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
7 plugin tags: arts, museum, template, fundraising, ticketing...
tgen-template-generator-for-tnew/tgen-template-generator.php 85% from 13 tests
The primary PHP file in "TGEN Template Generator for TNEW" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tgen-template-generator-for-tnew.php" instead of "tgen-template-generator.php")
- 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin10,927 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 2,447 | 7,024 | 8,714 |
Markdown | 10 | 359 | 1 | 784 |
JSON | 8 | 0 | 0 | 576 |
XML | 4 | 19 | 2 | 574 |
YAML | 6 | 25 | 0 | 178 |
JavaScript | 2 | 17 | 59 | 47 |
CSS | 2 | 15 | 15 | 46 |
Cucumber | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 13 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 7 | 8.33% |
▷ Concrete classes | 77 | 91.67% |
▷ Final classes | 2 | 2.60% |
Methods | 930 | |
▷ Static methods | 54 | 5.81% |
▷ Public methods | 856 | 92.04% |
▷ Protected methods | 31 | 3.33% |
▷ Private methods | 43 | 4.62% |
Functions | 26 | |
▷ Named functions | 12 | 46.15% |
▷ Anonymous functions | 14 | 53.85% |
Constants | 29 | |
▷ Global constants | 2 | 6.90% |
▷ Class constants | 27 | 93.10% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin