84% wp-google-charts

Code Review | WP Google Charts

WordPress plugin WP Google Charts scored84%from 54 tests.

About plugin

  • Plugin page: wp-google-charts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2013
  • Latest release: Jan 9, 2014
  • Number of updates: 9
  • Update frequency: every 7.3 days
  • Top authors: hmayaktigranyan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,801 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WP Google Charts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0529.05 ▼14.83
Dashboard /wp-admin3.34 ▲0.0351.58 ▼2.77
Posts /wp-admin/edit.php3.39 ▲0.0357.06 ▲3.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.30 ▼8.25
Media Library /wp-admin/upload.php3.26 ▲0.0341.40 ▲1.04

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Google Charts: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.061.79 ▼0.1143.77 ▲0.53
Dashboard /wp-admin2,192 ▲125.55 ▼0.1090.09 ▼4.9137.46 ▼6.52
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0637.60 ▼2.3337.22 ▲2.75
Add New Post /wp-admin/post-new.php1,526 ▼023.29 ▲0.22691.48 ▲5.7668.33 ▲14.37
Media Library /wp-admin/upload.php1,394 ▼64.14 ▼0.06101.41 ▼12.8644.60 ▼2.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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 everything seems fine, this is not 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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-google-charts/wp-google-charts.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-google-charts === )
You can look at the official readme.txt

wp-google-charts/wp-google-charts.php Passed 13 tests

The entry point to "WP Google Charts" version 1.0 is a PHP file that has certain tags in its header comment area
16 characters long description:
WP Google 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
Everything looks great! No dangerous files found in this plugin218 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14126218

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity7.00
▷ Minimum method complexity2.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin