Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.22MB] [CPU: ▼46.04ms] Passed 4 tests
An overview of server-side resources used by Twigify
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.70 | 11.88 ▼28.42 |
Dashboard /wp-admin | 2.80 ▼0.55 | 15.94 ▼44.39 |
Posts /wp-admin/edit.php | 2.80 ▼0.56 | 16.14 ▼33.15 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.09 | 16.93 ▼78.21 |
Media Library /wp-admin/upload.php | 2.80 ▼0.43 | 16.05 ▼15.89 |
Templates /wp-admin/edit.php?post_type=ctemplates | 2.80 | 16.04 |
Settings /wp-admin/admin.php?page=twigify-settings | 2.80 | 15.39 |
Server storage [IO: ▲1.45MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 493 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Twigify: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲250 | 14.75 ▲0.35 | 2.02 ▲0.15 | 37.45 ▼5.31 |
Dashboard /wp-admin | 2,374 ▲189 | 6.58 ▲1.51 | 134.22 ▲18.08 | 37.79 ▼10.16 |
Posts /wp-admin/edit.php | 2,282 ▲193 | 3.32 ▲1.32 | 50.49 ▲13.01 | 30.21 ▼6.60 |
Add New Post /wp-admin/post-new.php | 6,294 ▲4,761 | 25.83 ▲2.48 | 901.27 ▲245.65 | 47.68 ▲0.39 |
Media Library /wp-admin/upload.php | 1,419 ▲37 | 4.09 ▼0.18 | 76.99 ▼27.74 | 39.93 ▼3.19 |
Templates /wp-admin/edit.php?post_type=ctemplates | 1,247 | 3.26 | 46.62 | 27.68 |
Settings /wp-admin/admin.php?page=twigify-settings | 1,045 | 2.98 | 42.29 | 25.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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 plugin did not uninstall gracefully
- > Notice in wp-content/plugins/twigify/lib/ContentTemplates/Settings.php+37
Undefined index: roles
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twigify-settings
- > Notice in wp-content/plugins/twigify/lib/ContentTemplates/Settings.php+37
Undefined index: roles
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twigify-settings
- > Warning in wp-content/plugins/twigify/vendor/Custom-Metaboxes-and-Fields-for-WordPress-master/init.php+745
count(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twigify-settings
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=twigify-settings
- > Notice in wp-content/plugins/twigify/lib/ContentTemplates/AdminBar.php+8
Undefined index: post
SRP 0% 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 fix the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/twigify/views/alert.html.php
- > /wp-content/plugins/twigify/views/settings.html.php
- > /wp-content/plugins/twigify/vendor/Custom-Metaboxes-and-Fields-for-WordPress-master/tests/phpunit/includes/bootstrap.php
- > /wp-content/plugins/twigify/views/form.html.php
- 189× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/twigify/vendor/twig/twig/lib/Twig/Node/Expression/Test/Defined.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/twigify/vendor/twig/twig/lib/Twig/Error/Runtime.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/twigify/vendor/twig/twig/lib/Twig/Node/Expression/BlockReference.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/twigify/vendor/mockery/mockery/examples/starship/StarshipTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mockery\\Matcher\\MatcherAbstract' not found in wp-content/plugins/twigify/vendor/mockery/mockery/library/Mockery/Matcher/NotAnyOf.php:23
- > PHP Fatal error
Uncaught Error: Class 'Mockery\\Matcher\\MatcherAbstract' not found in wp-content/plugins/twigify/vendor/mockery/mockery/library/Mockery/Matcher/Not.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/twigify/vendor/twig/twig/lib/Twig/Node/Set.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Mock\\Hook' not found in wp-content/plugins/twigify/vendor/10up/wp_mock/WP_Mock/Action.php:13
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/twigify/vendor/twig/twig/lib/Twig/Node/Flush.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/twigify/vendor/twig/twig/lib/Twig/TokenParser/Spaceless.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: content, layout, twig, templating
twigify/twigify.php 85% from 13 tests
"Twigify" version 1.1.2-beta...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/lang")
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.1.2-beta...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected25,584 lines of code in 458 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 300 | 3,817 | 9,095 | 16,517 |
reStructuredText | 116 | 2,694 | 2,496 | 3,796 |
JavaScript | 5 | 312 | 403 | 2,246 |
C | 1 | 166 | 150 | 793 |
Markdown | 9 | 200 | 0 | 559 |
CSS | 2 | 61 | 21 | 540 |
JSON | 7 | 0 | 0 | 365 |
XML | 5 | 2 | 1 | 276 |
Bourne Shell | 3 | 52 | 45 | 201 |
make | 1 | 28 | 6 | 143 |
YAML | 6 | 14 | 0 | 94 |
Python | 1 | 68 | 153 | 38 |
C/C++ Header | 1 | 7 | 13 | 11 |
m4 | 1 | 2 | 1 | 5 |
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.39 |
Average class complexity | 7.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 25 | |
Traits | 0 | |
Classes | 265 | |
▷ Abstract classes | 18 | 6.79% |
▷ Concrete classes | 247 | 93.21% |
▷ Final classes | 0 | 0.00% |
Methods | 1,503 | |
▷ Static methods | 138 | 9.18% |
▷ Public methods | 1,346 | 89.55% |
▷ Protected methods | 130 | 8.65% |
▷ Private methods | 27 | 1.80% |
Functions | 169 | |
▷ Named functions | 134 | 79.29% |
▷ Anonymous functions | 35 | 20.71% |
Constants | 69 | |
▷ Global constants | 14 | 20.29% |
▷ Class constants | 55 | 79.71% |
▷ Public constants | 55 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/Custom-Metaboxes-and-Fields-for-WordPress-master/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/Custom-Metaboxes-and-Fields-for-WordPress-master/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/Custom-Metaboxes-and-Fields-for-WordPress-master/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/Custom-Metaboxes-and-Fields-for-WordPress-master/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
vendor/Custom-Metaboxes-and-Fields-for-WordPress-master/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |