10% spreadsheetcloudapi

Code Review | SpreadsheetCloudAPI

WordPress plugin SpreadsheetCloudAPI scored 10% from 54 tests.

About plugin

  • Plugin page: spreadsheetcloudapi
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 5.8.1
  • First release: Mar 16, 2017
  • Latest release: Jun 15, 2017
  • Number of updates: 5
  • Update frequency: every 16.6 days
  • Top authors: spreadsheetcloudapi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 357 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/spreadsheetcloudapi/SpreadsheetCloudAPI.php+33
    require_once(wp-content/plugins/spreadsheetcloudapi/\options\options.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.00MB] [CPU: ▼146.19ms] Passed 4 tests

A check of server-side resources used by SpreadsheetCloudAPI
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0027.59 ▼4.90
Dashboard /wp-admin3.06 ▲0.0039.64 ▼10.11
Posts /wp-admin/edit.php3.11 ▲0.0051.17 ▲4.71
Add New Post /wp-admin/post-new.php5.42 ▼0.0292.62 ▼574.45
Media Library /wp-admin/upload.php3.00 ▲0.0036.84 ▲7.86

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for SpreadsheetCloudAPI
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.86 ▼0.067.66 ▼0.3752.40 ▼0.84
Dashboard /wp-admin2,972 ▲355.85 ▼0.07160.83 ▲8.86120.35 ▼1.16
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0077.41 ▲1.80101.63 ▲8.31
Add New Post /wp-admin/post-new.php1,506 ▼17718.58 ▼0.13373.78 ▼25.79112.83 ▲6.66
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.02159.28 ▼6.06125.03 ▼4.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/spreadsheetcloudapi/SpreadsheetCloudAPI.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

spreadsheetcloudapi/SpreadsheetCloudAPI.php 85% from 13 tests

The entry point to "SpreadsheetCloudAPI" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("spreadsheetcloudapi.php" instead of "SpreadsheetCloudAPI.php")
  • Description: The description should be shorter than 140 characters (currently 295 characters long)

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
No dangerous file extensions were detected982 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP75227638
JavaScript3110178
CSS200120
HTML10046

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.38
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods28
▷ Static methods28100.00%
▷ Public methods2278.57%
▷ Protected methods00.00%
▷ Private methods621.43%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants49
▷ Global constants12.04%
▷ Class constants4897.96%
▷ Public constants48100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
widget/images/icon.png0.32KB0.25KB▼ 22.94%