Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼3.45ms] Passed 4 tests
Analyzing server-side resources used by Timeline Blocks for Gutenberg
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 44.14 ▲5.97 |
Dashboard /wp-admin | 3.49 ▲0.19 | 48.49 ▼2.32 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 43.85 ▼4.00 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 80.31 ▼6.73 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 33.25 ▼0.73 |
Server storage [IO: ▲3.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
tb_timeline_gutenberg_do_activation_redirect |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Timeline Blocks for Gutenberg
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.72 ▲0.37 | 1.73 ▲0.08 | 47.21 ▼1.44 |
Dashboard /wp-admin | 2,192 ▲15 | 5.61 ▼0.05 | 100.72 ▲6.78 | 41.83 ▼0.59 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.04 | 35.42 ▼2.52 | 31.42 ▼4.12 |
Add New Post /wp-admin/post-new.php | 6,202 ▲4,676 | 19.51 ▼3.84 | 937.43 ▲246.67 | 38.57 ▼23.56 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.16 ▼0.10 | 94.29 ▼6.61 | 41.28 ▼4.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- tb_timeline_gutenberg_do_activation_redirect
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant TB_DIR - assumed 'TB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/timeline-blocks/src/tb-helper/class-tb-helper.php on line 70
- > PHP Warning
require(TB_DIRsrc/tb-helper/class-tb-helper.php): failed to open stream: No such file or directory in wp-content/plugins/timeline-blocks/src/tb-helper/class-tb-loader.php on line 50
- > PHP Warning
Use of undefined constant TB_DIR - assumed 'TB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/timeline-blocks/src/tb-helper/class-tb-loader.php on line 50
- > PHP Warning
require(TB_DIRsrc/tb-helper/class-tb-config.php): failed to open stream: No such file or directory in wp-content/plugins/timeline-blocks/src/tb-helper/class-tb-helper.php on line 70
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timeline-blocks/src/blocks/index.php:654
- > PHP Fatal error
require(): Failed opening required 'TB_DIRsrc/tb-helper/class-tb-helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/timeline-blocks/src/tb-helper/class-tb-loader.php on line 50
- > PHP Fatal error
require(): Failed opening required 'TB_DIRsrc/tb-helper/class-tb-config.php' (include_path='.:/usr/share/php') in wp-content/plugins/timeline-blocks/src/tb-helper/class-tb-helper.php on line 70
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gutenberg block, timeline layouts, timeline blocks, timeline templates, post timeline blocks
timeline-blocks/timeline-blocks.php Passed 13 tests
The primary PHP file in "Timeline Blocks for Gutenberg" version 1.1.6 is used by WordPress to initiate all plugin functionality
112 characters long description:
A beautiful timeline block to showcase your posts in timeline presentation with multiple templates availability.
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 plugin11,451 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 1,850 | 50 | 4,360 |
SVG | 3 | 0 | 0 | 3,927 |
JavaScript | 12 | 142 | 61 | 1,248 |
PHP | 10 | 251 | 455 | 1,128 |
Sass | 4 | 106 | 14 | 788 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 3 | 42.86% |
Methods | 25 | |
▷ Static methods | 12 | 48.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin