83% sheet2site

Code Review | Sheet2Site

WordPress plugin Sheet2Site scored83%from 54 tests.

About plugin

  • Plugin page: sheet2site
  • Plugin version: 1.0.18
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Aug 28, 2019
  • Latest release: Jun 7, 2021
  • Number of updates: 20
  • Update frequency: every 32.5 days
  • Top authors: andreyazimov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /9,189 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.92ms] Passed 4 tests

A check of server-side resources used by Sheet2Site
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.54 ▼7.37
Dashboard /wp-admin3.34 ▲0.0345.92 ▼6.42
Posts /wp-admin/edit.php3.39 ▲0.0350.18 ▲6.96
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.21 ▼3.31
Media Library /wp-admin/upload.php3.26 ▲0.0330.28 ▼6.59
Sheet2Site /wp-admin/plugins.php?page=sheet2site3.3333.16

Server storage [IO: ▲0.75MB] [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: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sheet2Site
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7214.48 ▲0.101.99 ▼0.0943.85 ▼0.57
Dashboard /wp-admin2,210 ▲224.86 ▼1.03108.81 ▼5.8040.00 ▼3.09
Posts /wp-admin/edit.php2,090 ▲222.00 ▼0.0139.37 ▲3.3434.15 ▼1.77
Add New Post /wp-admin/post-new.php1,536 ▲2223.35 ▲5.82632.46 ▼65.1959.96 ▲0.08
Media Library /wp-admin/upload.php1,395 ▲104.20 ▼0.0598.78 ▼14.3343.14 ▼4.48
Sheet2Site /wp-admin/plugins.php?page=sheet2site9372.0727.3945.24

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just 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 sheet2site\\add_action() in wp-content/plugins/sheet2site/sheet2site.php:212

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

readme.txt 88% 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
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6, #7, #8, #9 in sheet2site/assets to your readme.txt
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

sheet2site/sheet2site.php Passed 13 tests

"Sheet2Site" version 1.0.18's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Embed your Google Sheet into your WordPress website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin218 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1278183
JavaScript10018
CSS10017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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
Namespaces1
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.62MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/embed2.png96.24KB33.75KB▼ 64.93%
assets/img/wp1.png88.30KB22.50KB▼ 74.52%
assets/img/wp2a.png30.73KB9.22KB▼ 69.99%
assets/img/wp4.png30.73KB9.22KB▼ 69.99%
assets/img/embed1.png234.56KB78.20KB▼ 66.66%