Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.26MB] [CPU: ▼2.53ms] Passed 4 tests
Server-side resources used by Post Timeline
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.92 ▲1.46 | 56.34 ▲14.85 |
Dashboard /wp-admin | 4.56 ▲1.22 | 51.94 ▼13.35 |
Posts /wp-admin/edit.php | 4.69 ▲1.33 | 51.42 ▼3.08 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 112.28 ▼2.37 |
Media Library /wp-admin/upload.php | 4.63 ▲1.40 | 44.46 ▲8.68 |
Tags /wp-admin/edit-tags.php?taxonomy=ptl_tag&post_type=post-timeline | 4.62 | 38.60 |
Dashboard /wp-admin/edit.php?post_type=post-timeline&page=ptl-dashboard | 4.55 | 35.10 |
All Timeline Post /wp-admin/edit.php?post_type=post-timeline | 4.68 | 43.20 |
Create Custom Post Type /wp-admin/options-writing.php?page=ptl-cpt-form | 3.65 | 27.32 |
Add New /wp-admin/post-new.php?post_type=post-timeline | 4.72 | 78.98 |
Timeline Settings /wp-admin/edit.php?post_type=post-timeline&page=timeline-settings | 4.55 | 47.29 |
Categories /wp-admin/edit-tags.php?taxonomy=ptl_categories&post_type=post-timeline | 4.62 | 38.44 |
Server storage [IO: ▲14.78MB] [DB: ▲0.31MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 205 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Post Timeline: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.72 ▲0.16 | 2.14 ▲0.05 | 36.72 ▼4.12 |
Dashboard /wp-admin | 2,236 ▲62 | 5.60 ▲0.02 | 83.19 ▼6.34 | 68.72 ▲26.70 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 1.99 ▲0.03 | 34.49 ▼3.64 | 34.73 ▲0.61 |
Add New Post /wp-admin/post-new.php | 7,393 ▲5,867 | 22.99 ▼0.18 | 1,043.19 ▲369.35 | 39.45 ▼15.04 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 4.19 ▼0.06 | 103.77 ▼7.92 | 76.71 ▲28.24 |
Tags /wp-admin/edit-tags.php?taxonomy=ptl_tag&post_type=post-timeline | 8,121 | 4.52 | 73.85 | 31.82 |
Dashboard /wp-admin/edit.php?post_type=post-timeline&page=ptl-dashboard | 7,925 | 5.42 | 109.36 | 58.24 |
All Timeline Post /wp-admin/edit.php?post_type=post-timeline | 8,012 | 5.77 | 116.58 | 38.28 |
Create Custom Post Type /wp-admin/options-writing.php?page=ptl-cpt-form | 28 | 0.42 | 0.07 | 3.19 |
Add New /wp-admin/post-new.php?post_type=post-timeline | 15,435 | 12.52 | 433.31 | 134.18 |
Timeline Settings /wp-admin/edit.php?post_type=post-timeline&page=timeline-settings | 10,500 | 4.64 | 220.28 | 64.60 |
Categories /wp-admin/edit-tags.php?taxonomy=ptl_categories&post_type=post-timeline | 1,318 | 2.12 | 26.62 | 32.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/post-timeline/public/partials/modal-popup.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category_Checklist' not found in wp-content/plugins/post-timeline/includes/components/radio-walker.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/post-timeline/admin/partials/ptl-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/post-timeline/admin/partials/admin-fields.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/post-timeline/admin/partials/shortcode-cpt.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/post-timeline/admin/partials/shortcode-ptl.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/post-timeline/admin/partials/multiple-templates.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/post-timeline/public/partials/post-timeline-page.php:5
- > PHP Fatal error
Uncaught Error: Class 'PostTimeline\\Layouts\\Base' not found in wp-content/plugins/post-timeline/includes/layouts/layout-5.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/post-timeline/admin/partials/shortcode-popup-html.php:6
- > PHP Warning
Use of undefined constant POST_TIMELINE_SITE - assumed 'POST_TIMELINE_SITE' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-timeline/admin/partials/multiple-templates.php on line 9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/edit-tags.php?taxonomy=ptl_tag&post_type=post-timeline
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).sortable is not a function" "TypeError: $(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/post-timeline/admin/js/timeline_script.js?ver=2.2.7:843:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit-tags.php?taxonomy=ptl_tag&post_type=post-timeline
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).sortable is not a function
- > GET request to /wp-admin/options-writing.php?page=ptl-cpt-form
- > Network (severe)
wp-admin/options-writing.php?page=ptl-cpt-form - Failed to load resource: the server responded with a status of 403 (Forbidden)
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 need to be fixed:
- Screenshots: Please describe screenshot #3 in post-timeline/assets to your readme.txt
post-timeline/post-timeline.php 92% from 13 tests
"Post Timeline" version 2.2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 147 characters long)
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
Success! There were no dangerous files found in this plugin107,173 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 1,555 | 628 | 57,707 |
JavaScript | 16 | 5,685 | 3,716 | 35,709 |
PHP | 33 | 1,532 | 1,678 | 5,034 |
PO File | 6 | 1,802 | 2,146 | 4,082 |
Sass | 1 | 20 | 118 | 2,392 |
JSON | 4 | 0 | 0 | 1,688 |
SVG | 3 | 1 | 0 | 302 |
HTML | 1 | 0 | 0 | 259 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 27.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 20 | 12.74% |
▷ Public methods | 131 | 83.44% |
▷ Protected methods | 6 | 3.82% |
▷ Private methods | 20 | 12.74% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
63 PNG files occupy 2.89MB with 1.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/dashboard/premium-side-image.png | 247.19KB | 77.45KB | ▼ 68.67% |
admin/images/dashboard/work-icon2.png | 5.05KB | 1.40KB | ▼ 72.33% |
admin/images/dashboard/lock.png | 129.01KB | 48.15KB | ▼ 62.67% |
admin/images/dashboard/primium/get_support_img.png | 2.76KB | 2.57KB | ▼ 7.03% |
admin/images/banners/template-4.png | 37.34KB | 14.07KB | ▼ 62.31% |