84% maxicharts-timeline

Code Review | MaxiCharts Timeline

WordPress plugin MaxiCharts Timeline scored84%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: 6.3.1
  • 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

20+ active /1,136 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.11ms] Passed 4 tests

Analyzing server-side resources used by MaxiCharts Timeline
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.56 ▼5.78
Dashboard /wp-admin3.31 ▲0.0043.79 ▼6.33
Posts /wp-admin/edit.php3.36 ▲0.0045.46 ▼0.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.26 ▼9.42
Media Library /wp-admin/upload.php3.23 ▲0.0033.39 ▼2.92

Server storage [IO: ▲18.31MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,043 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by MaxiCharts Timeline
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.371.65 ▼0.1344.38 ▲1.45
Dashboard /wp-admin2,206 ▲155.81 ▼0.04100.51 ▼9.0538.56 ▼5.31
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0138.82 ▲0.9135.27 ▼1.96
Add New Post /wp-admin/post-new.php1,524 ▼1123.41 ▲0.24600.15 ▼45.4354.08 ▼6.72
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0297.79 ▲1.6942.39 ▲0.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /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 smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires php: Version not formatted correctly
You can take inspiration from this readme.txt

maxicharts-timeline/maxicharts-timeline.php Passed 13 tests

The primary PHP file in "MaxiCharts Timeline" version 1.2.0 is used by WordPress to initiate all plugin functionality
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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected186,819 lines of code in 859 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript58622,44134,781144,196
HTML1893,39624826,461
CSS366242849,989
Markdown161,15002,733
JSON14001,296
PHP2128148638
TypeScript112687523
SVG472440
Python5131132373
CoffeeScript1123109
YAML43056
make1205

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
104 PNG files occupy 1.69MB with 1.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/node_modules/vis/examples/network/img/soft-scraps-icons/User-Coat-Blue-icon.png3.48KB2.25KB▼ 35.15%
libs/node_modules/vis/examples/timeline/resources/img/mail-icon.png3.22KB2.39KB▼ 25.74%
libs/node_modules/vis/dist/img/network/leftArrow.png4.42KB1.54KB▼ 65.20%
libs/node_modules/vis/examples/network/img/indonesia/4.png30.62KB4.49KB▼ 85.33%
libs/node_modules/vis/examples/network/img/indonesia/7.png29.36KB4.74KB▼ 83.86%