89% inline-google-spreadsheet-viewer

Code Review | Inline Google Spreadsheet Viewer

WordPress plugin Inline Google Spreadsheet Viewer scored89%from 54 tests.

About plugin

  • Plugin page: inline-google-spr...
  • Plugin version: 0.13.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Aug 19, 2010
  • Latest release: Apr 3, 2020
  • Number of updates: 270
  • Update frequency: every 13.2 days
  • Top authors: meitar (100%)

Code review

54 tests

User reviews

68 reviews

Install metrics

10,000+ active /234,501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼5.21ms] Passed 4 tests

This is a short check of server-side resources used by Inline Google Spreadsheet Viewer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2639.91 ▲0.33
Dashboard /wp-admin3.55 ▲0.2153.88 ▼5.97
Posts /wp-admin/edit.php3.67 ▲0.3145.78 ▼0.29
Add New Post /wp-admin/post-new.php6.14 ▲0.2583.52 ▼14.91
Media Library /wp-admin/upload.php3.48 ▲0.2536.45 ▲3.46
Inline Google Spreadsheet Viewer /wp-admin/options-general.php?page=gdoc_settings3.4431.57

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
gdoc_settings
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Inline Google Spreadsheet Viewer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲23257.77 ▲43.15379.73 ▲377.9243.12 ▲2.99
Dashboard /wp-admin2,229 ▲475.25 ▲0.33106.81 ▲3.5645.32 ▲2.33
Posts /wp-admin/edit.php2,178 ▲862.35 ▲0.3436.26 ▼5.2531.69 ▼4.14
Add New Post /wp-admin/post-new.php1,611 ▲9723.57 ▲6.08642.80 ▼46.3234.21 ▼25.85
Media Library /wp-admin/upload.php1,472 ▲844.62 ▲0.4098.74 ▼9.6942.27 ▼4.76
Inline Google Spreadsheet Viewer /wp-admin/options-general.php?page=gdoc_settings9282.0825.2335.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can look at the official readme.txt

inline-google-spreadsheet-viewer/inline-gdocs-viewer.php 77% from 13 tests

The principal PHP file in "Inline Google Spreadsheet Viewer" v. 0.13.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("inline-google-spreadsheet-viewer.php" instead of "inline-gdocs-viewer.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 553 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,694 lines of code in 71 files:
LanguageFilesBlank linesComment linesLines of code
PHP63034413,248
JSON6212301,257
JavaScript21121164
CSS101425

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity92.62
▷ Minimum class complexity2.00
▷ Maximum class complexity248.00
Average method complexity7.72
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods110
▷ Static methods2926.36%
▷ Public methods3733.64%
▷ Protected methods98.18%
▷ Private methods6458.18%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants1178.57%
▷ Class constants321.43%
▷ Public constants3100.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