Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.47ms] Passed 4 tests
A check of server-side resources used by Knight Lab Timeline
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.29 ▼2.82 |
Dashboard /wp-admin | 3.32 ▼0.03 | 48.42 ▼16.50 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 54.44 ▲2.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 98.42 ▼8.79 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.41 ▲3.19 |
Server storage [IO: ▲3.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 218 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Knight Lab Timeline
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,398 ▲637 | 13.42 ▼0.93 | 7.89 ▲6.26 | 43.12 ▲2.60 |
Dashboard /wp-admin | 2,725 ▲548 | 5.64 ▼0.03 | 93.00 ▼0.12 | 42.90 ▲5.65 |
Posts /wp-admin/edit.php | 2,633 ▲533 | 1.98 ▼0.05 | 44.43 ▲3.54 | 35.54 ▼3.72 |
Add New Post /wp-admin/post-new.php | 2,056 ▲530 | 23.15 ▼0.48 | 654.22 ▼16.23 | 56.42 ▼14.97 |
Media Library /wp-admin/upload.php | 1,933 ▲533 | 4.21 ▲0.04 | 96.50 ▼37.78 | 40.50 ▼19.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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)
Good news, no errors were detected
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/knight-lab-timelinejs/knightlab-timeline.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: knightlab, timelineveriteco, stamen, timeline, verite...
knight-lab-timelinejs/knightlab-timeline.php 92% from 13 tests
This is the main PHP file of "Knight Lab Timeline" version 3.9.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("knight-lab-timelinejs.php" instead of "knightlab-timeline.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin25,302 lines of code in 192 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 44 | 46 | 1,597 | 10,469 |
JavaScript | 73 | 1,908 | 2,213 | 8,134 |
JSON | 69 | 1 | 0 | 5,325 |
HTML | 1 | 11 | 2 | 1,104 |
PHP | 1 | 21 | 89 | 164 |
SVG | 1 | 0 | 0 | 66 |
XML | 1 | 7 | 4 | 29 |
Markdown | 2 | 7 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.46MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/themes/timeline-texture.png | 40.07KB | 44.06KB | 0.00% |
knight-diamond.png | 3.36KB | 0.16KB | ▼ 95.17% |
button-tinymce.png | 0.32KB | 0.34KB | 0.00% |
css/fancybox_sprite.png | 1.33KB | 1.42KB | 0.00% |
css/fancybox_sprite@2x.png | 5.86KB | 5.76KB | ▼ 1.60% |