89% simple-charts

Code Review | Simple Charts

WordPress plugin Simple Charts scored89%from 54 tests.

About plugin

  • Plugin page: simple-charts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2022
  • Latest release: Apr 30, 2023
  • Number of updates: 8
  • Update frequency: every 33.5 days
  • Top authors: supporthost (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

60+ active /1,528 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.67ms] Passed 4 tests

Server-side resources used by Simple Charts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.45 ▼7.44
Dashboard /wp-admin3.32 ▲0.0146.55 ▼4.55
Posts /wp-admin/edit.php3.37 ▲0.0147.38 ▼1.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.21 ▲3.21
Media Library /wp-admin/upload.php3.24 ▲0.0135.66 ▲2.91

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Simple Charts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.312.21 ▲0.3838.80 ▼11.77
Dashboard /wp-admin2,209 ▲215.88 ▼0.05107.45 ▲5.1739.24 ▼0.65
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0638.98 ▼0.3534.09 ▼1.87
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▼0.16630.35 ▼121.6065.82 ▲3.38
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0599.18 ▲1.8041.83 ▼1.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
Please take inspiration from this readme.txt

simple-charts/simple-charts.php 92% from 13 tests

The principal PHP file in "Simple Charts" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin62 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2212060
JavaScript10112

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected