84% chartblocks

Code Review | ChartBlocks

WordPress plugin ChartBlocks scored84%from 54 tests.

About plugin

  • Plugin page: chartblocks
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.0
  • WordPress version: 6.3.1
  • First release: Oct 13, 2014
  • Latest release: Oct 13, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: chartblocks (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by ChartBlocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.85 ▼3.26
Dashboard /wp-admin3.31 ▲0.0146.77 ▼2.83
Posts /wp-admin/edit.php3.37 ▲0.0145.07 ▼3.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.70 ▼16.37
Media Library /wp-admin/upload.php3.24 ▲0.0137.52 ▲2.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ChartBlocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲8413.45 ▼0.9110.05 ▲8.0543.71 ▼0.58
Dashboard /wp-admin2,192 ▲155.67 ▲0.0083.49 ▼3.6738.70 ▼1.90
Posts /wp-admin/edit.php2,100 ▼02.09 ▲0.1134.45 ▼3.8134.18 ▲0.48
Add New Post /wp-admin/post-new.php1,527 ▼223.02 ▼0.18671.77 ▲35.3652.72 ▼2.05
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0594.54 ▼1.4442.25 ▼1.91

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chartblocks/chartblocks.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: chart builder, oembed, charts, embed

chartblocks/chartblocks.php Passed 13 tests

This is the main PHP file of "ChartBlocks" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
A plugin to aid integration of ChartBlocks charts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected32 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript17019
PHP14910
Markdown1103

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin