Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PublicSide\AwesomeTimeline::showAlertForMailchimp() should not be called statically
Server metrics [RAM: ▼0.13MB] [CPU: ▼13.44ms] Passed 4 tests
Server-side resources used by Awesome Wordpress Timeline Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 36.24 ▼5.83 |
Dashboard /wp-admin | 3.22 ▼0.09 | 37.63 ▼14.52 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 42.50 ▼11.86 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.35 | 78.12 ▼21.55 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.00 ▲3.26 |
Timeline /wp-admin/edit.php?post_type=announcement&page=timeline-settings-page | 3.21 | 38.55 |
Add Announcement /wp-admin/post-new.php?post_type=announcement | 3.33 | 52.51 |
All Announcements /wp-admin/edit.php?post_type=announcement | 3.26 | 44.02 |
Server storage [IO: ▲4.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 102 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
demo_timeline_post |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Awesome Wordpress Timeline Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,029 ▲243 | 14.16 ▼0.24 | 11.20 ▲9.17 | 44.85 ▲2.40 |
Dashboard /wp-admin | 2,303 ▲100 | 5.40 ▼0.46 | 108.42 ▼0.73 | 43.98 ▲6.32 |
Posts /wp-admin/edit.php | 2,187 ▲87 | 2.48 ▲0.43 | 41.30 ▲1.87 | 31.19 ▼8.55 |
Add New Post /wp-admin/post-new.php | 1,598 ▲67 | 23.65 ▲0.32 | 640.50 ▼41.07 | 35.68 ▼12.96 |
Media Library /wp-admin/upload.php | 1,482 ▲79 | 4.69 ▲0.45 | 118.97 ▲14.03 | 47.13 ▼5.94 |
Timeline /wp-admin/edit.php?post_type=announcement&page=timeline-settings-page | 3,213 | 3.70 | 77.79 | 38.50 |
Add Announcement /wp-admin/post-new.php?post_type=announcement | 2,533 | 7.66 | 202.37 | 102.27 |
All Announcements /wp-admin/edit.php?post_type=announcement | 1,156 | 2.43 | 37.95 | 29.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- demo_timeline_post
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=announcement
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- > GET request to /wp-admin/edit.php?post_type=announcement
- > Notice in wp-content/plugins/awesome-timeline/admin/includes/class-announcement.php+176
Trying to get property 'post_type' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/awesome-timeline/public/views/public.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/awesome-timeline/admin/views/test.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/awesome-timeline/public/views/awesometimeline-shortcode-view.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/awesome-timeline/admin/views/timeline_menu.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function AdminSide\\Views\\esc_html() in wp-content/plugins/awesome-timeline/admin/views/admin.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: announcement plugin, facebook timeline, timeline plugin, announcement, timeline...
awesome-timeline/awesome-timeline.php 92% from 13 tests
The entry point to "Awesome Wordpress Timeline Plugin" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected11,356 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 196 | 138 | 6,601 |
PHP | 16 | 698 | 679 | 1,747 |
JavaScript | 9 | 166 | 85 | 1,432 |
SVG | 2 | 0 | 3 | 1,219 |
Sass | 3 | 151 | 0 | 308 |
XML | 1 | 4 | 73 | 49 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 10 | 20.41% |
▷ Public methods | 41 | 83.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 16.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.50MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 450.52KB | 105.76KB | ▼ 76.52% |
admin/assets/css/fs-sprite.png | 1.07KB | 0.18KB | ▼ 82.82% |
admin/assets/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
admin/assets/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
admin/assets/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |