90% embed-google-data-studio

Code Review | Embed Google Datastudio

WordPress plugin Embed Google Datastudio scored90%from 54 tests.

About plugin

  • Plugin page: embed-google-data...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2022
  • Latest release: Apr 2, 2022
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: elangovan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,474 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.36ms] Passed 4 tests

Server-side resources used by Embed Google Datastudio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.38 ▲1.37
Dashboard /wp-admin3.35 ▲0.0152.37 ▼13.38
Posts /wp-admin/edit.php3.40 ▲0.0555.92 ▲1.44
Add New Post /wp-admin/post-new.php5.99 ▲0.1187.09 ▼18.88
Media Library /wp-admin/upload.php3.27 ▲0.0543.01 ▲4.53
All GDS /wp-admin/edit.php?post_type=gds3.3239.19
Add New /wp-admin/post-new.php?post_type=gds3.3142.96

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Embed Google Datastudio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7314.26 ▼0.111.84 ▼0.1044.42 ▲2.47
Dashboard /wp-admin2,222 ▲515.62 ▲0.0290.12 ▲1.5342.77 ▲0.22
Posts /wp-admin/edit.php2,127 ▲272.04 ▲0.0739.49 ▼5.5536.45 ▼4.21
Add New Post /wp-admin/post-new.php1,549 ▲2323.69 ▲0.06656.93 ▼15.0958.80 ▼1.89
Media Library /wp-admin/upload.php1,427 ▲304.23 ▲0.0996.52 ▼5.1547.00 ▼2.53
All GDS /wp-admin/edit.php?post_type=gds1,0831.9331.9328.00
Add New /wp-admin/post-new.php?post_type=gds1,5302.5355.8369.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: google data studio report, embed google data studio, google data studio

embed-google-data-studio/embed-google-data-studio.php 92% from 13 tests

The main PHP file in "Embed Google Datastudio" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23544147

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin