Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.07MB] [CPU: ▲12.55ms] 75% from 4 tests
A check of server-side resources used by Timeline Designer
Please fix the following
- RAM: The total memory usage must be kept under 10MB (currently 10.76MB on /wp-admin/admin.php?page=add_wtl_shortcode)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.51 ▲2.05 | 53.63 ▲13.63 |
Dashboard /wp-admin | 5.38 ▲2.07 | 63.48 ▲14.82 |
Posts /wp-admin/edit.php | 5.49 ▲2.13 | 63.10 ▲11.93 |
Add New Post /wp-admin/post-new.php | 7.98 ▲2.09 | 102.95 ▲9.83 |
Media Library /wp-admin/upload.php | 5.30 ▲2.06 | 52.76 ▲16.18 |
Add Timeline Layout /wp-admin/admin.php?page=add_wtl_shortcode | 10.76 | 132.93 |
Import Layouts /wp-admin/admin.php?page=wtl_export | 5.31 | 53.91 |
Add Custom Post Type /wp-admin/admin.php?page=add_wtl_cpt | 5.42 | 57.14 |
Timeline Layouts /wp-admin/admin.php?page=wtl_layouts | 5.43 | 54.26 |
Custom Post Type /wp-admin/admin.php?page=wtl_cpts | 5.37 | 47.67 |
Server storage [IO: ▲5.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 217 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wtl_shortcodes |
wp_wtl_cpts |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics 75% from 4 tests
Timeline Designer: an overview of browser usage
Please improve the following
- Nodes: You must limit the number of DOM nodes under 25,000 (currently 38,773 on /wp-admin/admin.php?page=add_wtl_shortcode)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,966 ▲204 | 13.96 ▼0.38 | 13.14 ▲11.38 | 38.20 ▼6.29 |
Dashboard /wp-admin | 2,256 ▲76 | 5.03 ▼0.55 | 105.25 ▲8.79 | 93.40 ▲50.18 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.45 ▲0.48 | 43.80 ▼3.40 | 33.60 ▼1.53 |
Add New Post /wp-admin/post-new.php | 2,216 ▲690 | 23.58 ▲0.42 | 723.91 ▲125.91 | 121.16 ▲70.83 |
Media Library /wp-admin/upload.php | 1,474 ▲71 | 4.51 ▲0.22 | 91.72 ▼6.03 | 62.14 ▲21.46 |
Add Timeline Layout /wp-admin/admin.php?page=add_wtl_shortcode | 38,773 | 10.83 | 1,004.89 | 208.91 |
Import Layouts /wp-admin/admin.php?page=wtl_export | 1,149 | 5.27 | 81.14 | 32.11 |
Add Custom Post Type /wp-admin/admin.php?page=add_wtl_cpt | 1,573 | 5.21 | 93.04 | 44.29 |
Timeline Layouts /wp-admin/admin.php?page=wtl_layouts | 1,309 | 5.52 | 67.39 | 25.31 |
Custom Post Type /wp-admin/admin.php?page=wtl_cpts | 1,052 | 2.14 | 31.86 | 23.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_wtl_cpts
- wp_wtl_shortcodes
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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
Everything seems fine, however 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
Please take a closer look at the following
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/timeline-designer/public/css/layout-dynamic-style.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/timeline-designer/admin/class-wp-timeline-lite-support.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timeline-designer/wp_timeline_templates/template-reset/class-wtl-lite-template-reset.php:26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/timeline-designer/admin/class-wp-timeline-lite-support.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timeline-designer/admin/class-wtl-lite-custom-post-type.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timeline-designer/admin/class-wp-timeline-lite-ajax.php:53
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/timeline-designer/admin/class-wp-timeline-lite-support.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/timeline-designer/wp_timeline_templates/template-class/class-wtl-lite-template-advanced-layout.php:26
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/timeline-designer/admin/class-wp-timeline-lite-support.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/timeline-designer/wp_timeline_templates/class-wtl-lite-template-config.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in timeline-designer/assets to your readme.txt
timeline-designer/timeline-designer.php 92% from 13 tests
The main file in "Timeline Designer" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 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 plugin39,717 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 465 | 2,419 | 22,519 |
CSS | 21 | 655 | 404 | 11,217 |
JavaScript | 14 | 142 | 133 | 3,082 |
SVG | 4 | 0 | 12 | 2,899 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 392)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 144.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 561.00 |
Average method complexity | 13.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 392.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 211 | |
▷ Static methods | 131 | 62.09% |
▷ Public methods | 204 | 96.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 3.32% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
63 compressed PNG files occupy 0.82MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pagination/template-2.png | 2.52KB | 2.12KB | ▼ 15.76% |
public/images/logbook/dark/dot-selected.png | 0.48KB | 0.59KB | 0.00% |
images/navigation/navigation2.png | 0.25KB | 0.26KB | 0.00% |
admin/images/ui-icons_454545_256x240.png | 3.49KB | 3.82KB | 0.00% |
admin/images/ui-icons_2e83ff_256x240.png | 3.50KB | 3.83KB | 0.00% |