94% maxicharts-timeline

Code Review | MaxiCharts Timeline

WordPress plugin MaxiCharts Timeline scored 94% from 54 tests.

About plugin

  • Plugin page: maxicharts-timeline
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.9.2
  • First release: Feb 3, 2019
  • Latest release: Jan 4, 2021
  • Number of updates: 46
  • Update frequency: every 15.2 days
  • Top authors: maxicharts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 904 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.4059.34 ▲32.02
Dashboard /wp-admin3.41 ▲0.0042.83 ▼1.10
Posts /wp-admin/edit.php3.65 ▼0.2640.12 ▼6.78
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.44 ▼1,271.70
Media Library /wp-admin/upload.php3.30 ▲0.0026.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4615.80 ▲0.405.62 ▼4.382.52 ▼0.08
Dashboard /wp-admin2,895 ▲355.98 ▼0.16112.17 ▼8.89153.52 ▼10.92
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0062.49 ▲0.38140.25 ▲3.03
Add New Post /wp-admin/post-new.php1,794 ▲12621.28 ▲1.74473.12 ▼0.82166.11 ▼0.73
Media Library /wp-admin/upload.php1,698 ▲35.47 ▼0.07142.19 ▲3.15181.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


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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.31
Average class complexity69.00
▷ Minimum class complexity69.00
▷ Maximum class complexity69.00
Average method complexity5.53
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
libs/node_modules/vis/dist/img/network/zoomExtends.png4.36KB1.38KB▼ 68.23%
libs/node_modules/vis/examples/network/img/soft-scraps-icons/Smiley-Grin-icon.png3.83KB2.26KB▼ 40.98%
libs/node_modules/vis/examples/network/img/soft-scraps-icons/User-Preppy-Red-icon.png3.71KB2.27KB▼ 38.92%
libs/node_modules/vis/lib/network/img/editIcon.png20.52KB1.48KB▼ 92.80%
libs/node_modules/vis/examples/network/imageSelected/broken-image.png1.70KB1.06KB▼ 37.54%