Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.24MB] [CPU: ▲0.20ms] Passed 4 tests
Analyzing server-side resources used by Timber
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.74 ▲1.28 | 50.41 ▲11.07 |
Dashboard /wp-admin | 4.58 ▲1.24 | 51.61 ▼11.91 |
Posts /wp-admin/edit.php | 4.63 ▲1.28 | 58.98 ▲10.80 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.22 | 89.63 ▼9.16 |
Media Library /wp-admin/upload.php | 4.44 ▲1.21 | 46.13 ▲12.85 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 664 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Timber
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.15 | 1.72 ▲0.17 | 44.02 ▲4.34 |
Dashboard /wp-admin | 2,195 ▲17 | 5.58 ▼0.16 | 81.44 ▼38.64 | 36.58 ▼8.26 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.03 | 37.19 ▲3.23 | 35.81 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.74 ▲0.82 | 679.85 ▲32.61 | 56.90 ▲3.84 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▼0.01 | 107.06 ▲13.45 | 45.76 ▲3.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
- 317× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\\CacheExtension\\Exception\\BaseException' not found in wp-content/plugins/timber-library/vendor/twig/cache-extension/lib/Twig/CacheExtension/Exception/InvalidCacheKeyException.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/timber-library/vendor/twig/cache-extension/test/Twig/CacheExtension/Tests/CacheStrategy/LifetimeCacheStrategyTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/timber-library/vendor/twig/twig/src/Node/Expression/TempNameExpression.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\CacheExtension\\CacheStrategyInterface' not found in wp-content/plugins/timber-library/vendor/twig/cache-extension/lib/Twig/CacheExtension/CacheStrategy/BlackholeCacheStrategy.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\CacheExtension\\CacheStrategyInterface' not found in wp-content/plugins/timber-library/vendor/twig/cache-extension/lib/Twig/CacheExtension/CacheStrategy/IndexedChainingCacheStrategy.php:27
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/timber-library/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/timber-library/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/timber-library/vendor/twig/twig/src/TokenParser/ForTokenParser.php:35
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/timber-library/vendor/twig/twig/src/TokenParser/ApplyTokenParser.php:27
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/timber-library/vendor/twig/twig/src/Node/Expression/ParentExpression.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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: twig, template engine, templates
timber-library/timber.php 92% from 13 tests
The main PHP file in "Timber" ver. 1.23.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("timber-library.php" instead of "timber.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin25,125 lines of code in 642 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 585 | 5,669 | 11,685 | 23,042 |
JSON | 7 | 0 | 0 | 846 |
Markdown | 7 | 190 | 0 | 459 |
YAML | 9 | 86 | 0 | 311 |
Twig | 25 | 29 | 9 | 288 |
Bourne Shell | 1 | 22 | 6 | 86 |
XML | 4 | 2 | 3 | 69 |
reStructuredText | 1 | 9 | 5 | 13 |
HTML | 1 | 1 | 0 | 9 |
JavaScript | 1 | 2 | 1 | 2 |
CSS | 1 | 0 | 5 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 5.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 40 | |
Interfaces | 31 | |
Traits | 0 | |
Classes | 532 | |
▷ Abstract classes | 17 | 3.20% |
▷ Concrete classes | 515 | 96.80% |
▷ Final classes | 4 | 0.78% |
Methods | 1,719 | |
▷ Static methods | 226 | 13.15% |
▷ Public methods | 1,434 | 83.42% |
▷ Protected methods | 245 | 14.25% |
▷ Private methods | 40 | 2.33% |
Functions | 135 | |
▷ Named functions | 82 | 60.74% |
▷ Anonymous functions | 53 | 39.26% |
Constants | 61 | |
▷ Global constants | 2 | 3.28% |
▷ Class constants | 59 | 96.72% |
▷ Public constants | 59 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
timber-starter-theme/screenshot.png | 12.73KB | 6.31KB | ▼ 50.43% |