Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.09MB] [CPU: ▼319.04ms] Passed 4 tests
An overview of server-side resources used by MaxiCharts Timeline
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.40 | 59.34 ▲32.02 |
Dashboard /wp-admin | 3.41 ▲0.00 | 42.83 ▼1.10 |
Posts /wp-admin/edit.php | 3.65 ▼0.26 | 40.12 ▼6.78 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 95.44 ▼1,271.70 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 26.15 ▲3.42 |
Server storage [IO: ▲18.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 1,043 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for MaxiCharts Timeline
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.80 ▲0.40 | 5.62 ▼4.38 | 2.52 ▼0.08 |
Dashboard /wp-admin | 2,895 ▲35 | 5.98 ▼0.16 | 112.17 ▼8.89 | 153.52 ▼10.92 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▲0.00 | 62.49 ▲0.38 | 140.25 ▲3.03 |
Add New Post /wp-admin/post-new.php | 1,794 ▲126 | 21.28 ▲1.74 | 473.12 ▼0.82 | 166.11 ▼0.73 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.47 ▼0.07 | 142.19 ▲3.15 | 181.46 ▼6.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/maxicharts-timeline/libs/node_modules/vis/examples/graph3d/playground/datasource.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Requires php: Invalid version format
maxicharts-timeline/maxicharts-timeline.php Passed 13 tests
"MaxiCharts Timeline" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Use Time Line inside Wordpress to display csv events, or blog posts history
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
Good job! No executable or dangerous file extensions detected186,819 lines of code in 859 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 586 | 22,441 | 34,781 | 144,196 |
HTML | 189 | 3,396 | 248 | 26,461 |
CSS | 36 | 624 | 284 | 9,989 |
Markdown | 16 | 1,150 | 0 | 2,733 |
JSON | 14 | 0 | 0 | 1,296 |
PHP | 2 | 128 | 148 | 638 |
TypeScript | 1 | 126 | 87 | 523 |
SVG | 4 | 7 | 2 | 440 |
Python | 5 | 131 | 132 | 373 |
CoffeeScript | 1 | 12 | 3 | 109 |
YAML | 4 | 3 | 0 | 56 |
make | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 5.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
104 PNG files occupy 1.69MB with 0.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/node_modules/vis/dist/img/network/zoomExtends.png | 4.36KB | 1.38KB | ▼ 68.23% |
libs/node_modules/vis/examples/network/img/soft-scraps-icons/Smiley-Grin-icon.png | 3.83KB | 2.26KB | ▼ 40.98% |
libs/node_modules/vis/examples/network/img/soft-scraps-icons/User-Preppy-Red-icon.png | 3.71KB | 2.27KB | ▼ 38.92% |
libs/node_modules/vis/lib/network/img/editIcon.png | 20.52KB | 1.48KB | ▼ 92.80% |
libs/node_modules/vis/examples/network/imageSelected/broken-image.png | 1.70KB | 1.06KB | ▼ 37.54% |