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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.38ms] Passed 4 tests
Server-side resources used by Timeline Block
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 43.68 ▲0.90 |
Dashboard /wp-admin | 3.39 ▲0.08 | 57.60 ▲4.94 |
Posts /wp-admin/edit.php | 3.51 ▲0.14 | 54.00 ▼0.43 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.07 ▼13.02 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.49 ▼0.97 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Timeline Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.42 ▲0.06 | 1.91 ▲0.26 | 44.62 ▲2.45 |
Dashboard /wp-admin | 2,192 ▲15 | 5.55 ▼0.03 | 83.52 ▼4.47 | 43.00 ▲2.67 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▲0.03 | 34.48 ▼1.24 | 36.97 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6,368 ▲4,840 | 28.03 ▲4.95 | 900.50 ▲264.29 | 38.57 ▼19.31 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.13 ▼0.03 | 106.23 ▲10.52 | 45.49 ▲3.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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)
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function TLGB\\Inc\\plugin_dir_path() in wp-content/plugins/timeline-block-block/inc/style.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/timeline-block-block/inc/block.php:2
- > PHP Warning
Use of undefined constant TLGB_VERSION - assumed 'TLGB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/timeline-block-block/dist/editor.asset.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Screenshot #1 (All Block Directory) image required
- Requires at least: The plugin version is formatted incorrectly
timeline-block-block/plugin.php 85% from 13 tests
The entry point to "Timeline Block" version 1.0.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("timeline-block-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected857 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 0 | 2 | 351 |
PHP | 6 | 47 | 16 | 264 |
JSON | 2 | 0 | 0 | 129 |
PO File | 1 | 45 | 84 | 108 |
JavaScript | 3 | 0 | 8 | 3 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 7 | 53.85% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/timeline.png | 0.90KB | 1.07KB | 0.00% |