Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼40.52ms] Passed 4 tests
Analyzing server-side resources used by Viavi WordPress Timeline
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.73 ▼0.93 |
Dashboard /wp-admin | 3.05 ▼0.29 | 25.46 ▼38.20 |
Posts /wp-admin/edit.php | 3.05 ▼0.30 | 24.07 ▼24.89 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.83 | 24.83 ▼88.55 |
Media Library /wp-admin/upload.php | 3.05 ▼0.18 | 23.89 ▼10.42 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Viavi WordPress Timeline: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,982 ▲236 | 13.66 ▼0.74 | 12.73 ▲10.95 | 41.37 ▼3.43 |
Dashboard /wp-admin | 2,212 ▲21 | 5.84 ▲0.03 | 105.53 ▲5.73 | 70.73 ▲27.78 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 1.98 ▼0.02 | 34.42 ▼3.27 | 34.58 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,685 ▲157 | 22.58 ▲4.15 | 682.57 ▲83.57 | 46.95 ▼9.24 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.20 ▼0.02 | 109.64 ▲13.23 | 45.46 ▲1.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 17× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/viavi-wp-timeline/Admin/Event/EditEventForm.php
- > /wp-content/plugins/viavi-wp-timeline/footer.php
- > /wp-content/plugins/viavi-wp-timeline/WordPressTimelineFunction.php
- > /wp-content/plugins/viavi-wp-timeline/Admin/Event/NewEventPost.php
- > /wp-content/plugins/viavi-wp-timeline/Admin/Help.php
- > /wp-content/plugins/viavi-wp-timeline/Admin/Group/GroupList.php
- > /wp-content/plugins/viavi-wp-timeline/Admin/Group/NewGroupPost.php
- > /wp-content/plugins/viavi-wp-timeline/Admin/Group/EditGroupPost.php
- > /wp-content/plugins/viavi-wp-timeline/Admin/Event/EventList.php
- > /wp-content/plugins/viavi-wp-timeline/Admin/Event/NewEventForm.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/viavi-wp-timeline/WordPressTimelineFunction.php:140
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/viavi-wp-timeline/index.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Timeline list), #2 (Add new timeline), #3 (Event list), #4 (Add new event), #5 (Timeline style), #6 (Help)
viavi-wp-timeline/index.php 92% from 13 tests
The principal PHP file in "Viavi WordPress Timeline" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("viavi-wp-timeline.php" instead of "index.php")
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 detected2,505 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 243 | 89 | 1,284 |
PHP | 18 | 336 | 97 | 919 |
JavaScript | 6 | 39 | 35 | 169 |
PO File | 1 | 54 | 5 | 133 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
35 PNG files occupy 0.44MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/viavi-wp-timeline-logo.png | 1.48KB | 1.55KB | 0.00% |
Admin/Css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
images/viavi-wp-timeline-icon.png | 0.67KB | 0.68KB | 0.00% |
screenshot-5.png | 38.97KB | 13.01KB | ▼ 66.62% |
screenshot-3.png | 46.75KB | 15.65KB | ▼ 66.53% |