Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.23MB] [CPU: ▼43.21ms] Passed 4 tests
An overview of server-side resources used by Content Template Engine
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 13.88 ▼28.07 |
Dashboard /wp-admin | 2.78 ▼0.52 | 14.31 ▼33.29 |
Posts /wp-admin/edit.php | 2.78 ▼0.57 | 15.75 ▼29.65 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.10 | 14.75 ▼81.82 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 13.27 ▼19.33 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 622 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Content Template Engine
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.20 ▼1.17 | 1.86 ▼0.34 | 43.58 ▼7.85 |
Dashboard /wp-admin | 2,209 ▲18 | 5.90 ▲0.87 | 99.32 ▼10.78 | 39.38 ▼4.58 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.03 | 33.57 ▼3.87 | 30.92 ▼3.70 |
Add New Post /wp-admin/post-new.php | 6,482 ▲4,949 | 20.40 ▼2.95 | 913.60 ▲231.48 | 56.54 ▼24.98 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.03 | 94.13 ▼15.56 | 39.92 ▼5.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-content/plugins/content-template-engine/vendor/twig/twig/lib/Twig/Loader/String.php+12
The Twig_Loader_String class is deprecated since version 1.18.1 and will be removed in 2.0. Use Twig_Loader_Array instead or Twig_Environment::createTemplate().
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 218× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/content-template-engine/vendor/twig/twig/lib/Twig/Error/Syntax.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-template-engine/content-template-engine.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/content-template-engine/vendor/twig/twig/lib/Twig/Node/Expression/Unary/Not.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/content-template-engine/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Or.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/content-template-engine/vendor/twig/twig/test/Twig/Tests/Node/Expression/Binary/ModTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/content-template-engine/vendor/twig/twig/test/Twig/Tests/NodeVisitor/OptimizerTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Call' not found in wp-content/plugins/content-template-engine/vendor/twig/twig/lib/Twig/Node/Expression/Function.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/content-template-engine/vendor/twig/twig/test/Twig/Tests/Node/Expression/ConditionalTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/content-template-engine/vendor/twig/twig/lib/Twig/Node/Expression/Parent.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/content-template-engine/vendor/twig/twig/test/Twig/Tests/LexerTest.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: the_content, template engine, template, post, page...
content-template-engine/content-template-engine.php Passed 13 tests
The main PHP file in "Content Template Engine" ver. 0.9.4 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Enables Twig template engine in the WordPress contents.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected18,072 lines of code in 369 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 263 | 3,144 | 6,507 | 13,864 |
reStructuredText | 78 | 2,237 | 1,954 | 3,107 |
C | 1 | 161 | 174 | 792 |
JSON | 3 | 0 | 0 | 168 |
Markdown | 1 | 14 | 0 | 37 |
PO File | 1 | 12 | 21 | 30 |
XML | 1 | 2 | 0 | 23 |
HTML | 11 | 0 | 0 | 17 |
C/C++ Header | 1 | 7 | 13 | 15 |
Twig | 8 | 6 | 0 | 14 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 20 | |
Traits | 0 | |
Classes | 260 | |
▷ Abstract classes | 14 | 5.38% |
▷ Concrete classes | 246 | 94.62% |
▷ Final classes | 0 | 0.00% |
Methods | 1,222 | |
▷ Static methods | 11 | 0.90% |
▷ Public methods | 1,083 | 88.63% |
▷ Protected methods | 123 | 10.07% |
▷ Private methods | 16 | 1.31% |
Functions | 66 | |
▷ Named functions | 57 | 86.36% |
▷ Anonymous functions | 9 | 13.64% |
Constants | 44 | |
▷ Global constants | 1 | 2.27% |
▷ Class constants | 43 | 97.73% |
▷ Public constants | 43 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin