Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.41ms] Passed 4 tests
An overview of server-side resources used by Editor for Timber
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.04 ▼1.17 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.38 ▼2.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.51 ▲4.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.52 ▼2.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.03 ▲4.79 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 166 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Editor for Timber: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.57 ▼1.24 | 1.63 ▼0.40 | 41.66 ▼3.31 |
Dashboard /wp-admin | 2,218 ▲30 | 5.85 ▼0.01 | 108.91 ▼0.56 | 42.61 ▼2.03 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.00 ▼0.01 | 41.84 ▲1.62 | 36.45 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,531 ▼3 | 23.26 ▲0.22 | 663.07 ▲19.34 | 54.44 ▼5.72 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.20 ▼0.02 | 98.79 ▼6.43 | 43.89 ▼2.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editor-for-timber/trunk/editor-for-timber.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editor-for-timber/editor-for-timber.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: twig, templates, timber
editor-for-timber/editor-for-timber.php Passed 13 tests
This is the main PHP file of "Editor for Timber" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
23 characters long description:
Admin Editor for Timber
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
No dangerous file extensions were detected812 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 136 | 304 | 717 |
CSS | 63 | 0 | 0 | 63 |
JSON | 2 | 0 | 0 | 31 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 20 | 21.28% |
▷ Public methods | 92 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.13% |
Functions | 16 | |
▷ Named functions | 6 | 37.50% |
▷ Anonymous functions | 10 | 62.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin