10% sheets2table

Code Review | Sheets2Table

WordPress plugin Sheets2Table scored10%from 54 tests.

About plugin

  • Plugin page: sheets2table
  • Plugin version: 0.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2015
  • Latest release: Jun 24, 2015
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: tony.h (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /2,334 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/sheets2table/admin/class-sheets2table-admin.php+16
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.46ms] Passed 4 tests

A check of server-side resources used by Sheets2Table
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.94 ▼32.45
Dashboard /wp-admin2.10 ▼1.245.44 ▼52.21
Posts /wp-admin/edit.php2.10 ▼1.265.55 ▼41.81
Add New Post /wp-admin/post-new.php2.10 ▼3.795.27 ▼95.37
Media Library /wp-admin/upload.php2.10 ▼1.135.59 ▼29.13
Sheets2Table /wp-admin/options-general.php?page=sheets2table-admin2.105.76

Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sheets2Table
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.35 ▲0.001.68 ▼0.0943.89 ▲3.09
Dashboard /wp-admin2,199 ▲225.63 ▲0.0184.82 ▼1.9439.15 ▼4.91
Posts /wp-admin/edit.php2,101 ▲12.00 ▲0.0234.11 ▼2.5436.27 ▲1.36
Add New Post /wp-admin/post-new.php1,529 ▲323.80 ▲0.63601.63 ▼50.6346.24 ▼6.67
Media Library /wp-admin/upload.php1,401 ▲14.19 ▼0.0095.12 ▼12.1241.85 ▼4.75
Sheets2Table /wp-admin/options-general.php?page=sheets2table-admin8402.0324.1430.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/sheets2table/admin/class-sheets2table-admin.php+16
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=sheets2table-admin
    • > Deprecated in wp-content/plugins/sheets2table/admin/class-sheets2table-admin.php+16
    Function create_function() is deprecated

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
  • 16× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/sheets2table/admin/sheets2table-admin-shortcodes.php
    • > /wp-content/plugins/sheets2table/core/sheets2table-shortcodes.php
    • > /wp-content/plugins/sheets2table/admin/sheets2table-admin-file-management.php
    • > /wp-content/plugins/sheets2table/includes/class-sheets2table-shortcode-options.php
    • > /wp-content/plugins/sheets2table/sheets2table.php
    • > /wp-content/plugins/sheets2table/includes/sheets2table-functions.php
    • > /wp-content/plugins/sheets2table/admin/sheets2table-admin-sheets.php
    • > /wp-content/plugins/sheets2table/class-sheets2table.php
    • > /wp-content/plugins/sheets2table/includes/class-sheets2table-save-as-file.php
    • > /wp-content/plugins/sheets2table/includes/class-sheets2table-resources.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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:
  • Screenshots: These screenshots lack descriptions #5, #6, #7 in sheets2table/assets to your readme.txt
You can look at the official readme.txt

sheets2table/sheets2table.php Passed 13 tests

The entry point to "Sheets2Table" version 0.4.1 is a PHP file that has certain tags in its header comment area
53 characters long description:
Sheets2Table builds an HTML table from a Google Sheet

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 detected1,052 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP174161,155904
CSS119484
SVG10064

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.44
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods65
▷ Static methods1320.00%
▷ Public methods5584.62%
▷ Protected methods00.00%
▷ Private methods1015.38%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin