Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.08ms] Passed 4 tests
This is a short check of server-side resources used by Simple Timeline
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.38 ▼0.51 |
Dashboard /wp-admin | 3.32 ▼0.03 | 52.43 ▼14.14 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.98 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.37 ▼19.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.13 ▲1.75 |
添加时间轴 /wp-admin/admin.php?page=STL_admin_add | 3.24 | 30.43 |
时间轴管理 /wp-admin/admin.php?page=STL_admin | 3.25 | 38.95 |
修改时间轴 /wp-admin/admin.php?page=STL_admin_edit | 3.25 | 28.17 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_stl_node |
New WordPress options |
---|
widget_recent-posts |
STL_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Timeline
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 13.56 ▼0.71 | 1.67 ▼0.24 | 44.34 ▲4.57 |
Dashboard /wp-admin | 2,252 ▲49 | 5.79 ▲0.94 | 113.60 ▲8.41 | 52.19 ▲6.13 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▲0.02 | 36.66 ▼4.30 | 43.88 ▲7.18 |
Add New Post /wp-admin/post-new.php | 1,575 ▲35 | 23.07 ▼0.05 | 665.88 ▲60.34 | 57.39 ▲2.67 |
Media Library /wp-admin/upload.php | 1,425 ▲22 | 4.23 ▲0.03 | 98.55 ▼5.84 | 52.04 ▲6.07 |
添加时间轴 /wp-admin/admin.php?page=STL_admin_add | 1,552 | 6.57 | 127.19 | 71.39 |
时间轴管理 /wp-admin/admin.php?page=STL_admin | 829 | 2.02 | 24.90 | 36.70 |
修改时间轴 /wp-admin/admin.php?page=STL_admin_edit | 1,555 | 6.54 | 132.41 | 48.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Zombie tables detected upon uninstall: 1 table
- wp_stl_node
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=STL_admin_add
- > Notice in wp-content/plugins/simple-timeline/STL_node_add.php+34
Undefined index: stl_node_content
- > GET request to /wp-admin/admin.php?page=STL_admin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=STL_admin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=STL_admin_edit
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=STL_admin_edit
- > Notice in wp-content/plugins/simple-timeline/STL_node_edit.php+43
Undefined variable: nodes
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=STL_admin_edit
- > Notice in wp-content/plugins/simple-timeline/STL_node_edit.php+43
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=STL_admin_edit
- > Notice in wp-content/plugins/simple-timeline/STL_node_edit.php+32
Trying to get property 'node_date' of non-object
- > GET request to /wp-admin/admin.php?page=STL_admin_edit
- > Notice in wp-content/plugins/simple-timeline/STL_node_edit.php+33
Trying to get property 'id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=STL_admin_edit
- > Notice in wp-content/plugins/simple-timeline/STL_node_edit.php+39
Trying to get property 'node_status' of non-object
- > GET request to /wp-admin/admin.php?page=STL_admin_edit
- > Notice in wp-content/plugins/simple-timeline/STL_node_edit.php+43
Trying to get property 'node_content' of non-object
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_safe_redirect() in wp-content/plugins/simple-timeline/STL_node_edit.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/simple-timeline/STL_node_add.php:34
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/simple-timeline/STL_node_admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== simple-timeline ===
) - Screenshots: Please add images for these screenshots: #1 (Admin page), #2 (Front-end performance), #3 (Adding/Editing timeline node page)
simple-timeline/wp-simple-timeline.php 92% from 13 tests
The main PHP file in "Simple Timeline" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-timeline.php" instead of "wp-simple-timeline.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected370 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 28 | 12 | 247 |
CSS | 1 | 3 | 6 | 74 |
PO File | 1 | 16 | 16 | 49 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/version_line.png | 0.15KB | 0.08KB | ▼ 45.03% |