78% blazing-charts

Code Review | Blazing Charts

WordPress plugin Blazing Charts scored78%from 54 tests.

About plugin

  • Plugin page: blazing-charts
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Mar 23, 2018
  • Number of updates: 21
  • Update frequency: every 44.4 days
  • Top authors: massoudshakeri (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /7,342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.10ms] Passed 4 tests

Server-side resources used by Blazing Charts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1244.17 ▼6.85
Dashboard /wp-admin3.48 ▲0.0951.30 ▼14.57
Posts /wp-admin/edit.php3.59 ▲0.1953.73 ▲2.16
Add New Post /wp-admin/post-new.php6.06 ▲0.1390.28 ▼5.12
Media Library /wp-admin/upload.php3.40 ▲0.1340.36 ▲4.17
Bazing Charts Settings /wp-admin/options-general.php?page=blazing-charts/inc/options-page.php3.3434.91
All Chart Snippets /wp-admin/edit.php?post_type=chart_snippet3.4442.25
Add New /wp-admin/post-new.php?post_type=chart_snippet3.4648.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
blazing_charts_settings

Browser metrics Passed 4 tests

Checking browser requirements for Blazing Charts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.22 ▼0.131.71 ▼0.8243.02 ▲3.48
Dashboard /wp-admin2,210 ▲305.55 ▼0.1394.60 ▲5.3879.34 ▲39.88
Posts /wp-admin/edit.php2,127 ▲241.98 ▲0.0134.69 ▼0.4034.45 ▼1.74
Add New Post /wp-admin/post-new.php1,705 ▲17922.02 ▼1.60655.50 ▼19.8661.04 ▲6.75
Media Library /wp-admin/upload.php1,430 ▲274.22 ▲0.0299.48 ▲0.7470.73 ▲24.20
Bazing Charts Settings /wp-admin/options-general.php?page=blazing-charts/inc/options-page.php9162.0027.7727.16
All Chart Snippets /wp-admin/edit.php?post_type=chart_snippet1,0941.9233.9930.75
Add New /wp-admin/post-new.php?post_type=chart_snippet1,8733.9277.13102.13

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 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • blazing_charts_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=blazing-charts/inc/options-page.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=blazing-charts/inc/options-page.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/blazing-charts/inc/options-page.php:179

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)
No browser issues were found

Optimizations

Plugin configuration 97% 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 need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

blazing-charts/blazing-charts.php Passed 13 tests

The primary PHP file in "Blazing Charts" version 1.0.6 is used by WordPress to initiate all plugin functionality
65 characters long description:
The plugin introduces a new post type for "Graph Scripts", and by

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
Everything looks great! No dangerous files found in this plugin1,481 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25103373514
CSS312930485
PHP24497482

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity39.00
▷ Minimum class complexity17.00
▷ Maximum class complexity61.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/blazing-graph-icon.png0.47KB0.41KB▼ 13.72%