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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 27.59 ▼4.90 |
Dashboard /wp-admin | 3.06 ▲0.00 | 39.64 ▼10.11 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 51.17 ▲4.71 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 92.62 ▼574.45 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.86 ▼0.06 | 7.66 ▼0.37 | 52.40 ▼0.84 |
Dashboard /wp-admin | 2,972 ▲35 | 5.85 ▼0.07 | 160.83 ▲8.86 | 120.35 ▼1.16 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 77.41 ▲1.80 | 101.63 ▲8.31 |
Add New Post /wp-admin/post-new.php | 1,506 ▼177 | 18.58 ▼0.13 | 373.78 ▼25.79 | 112.83 ▲6.66 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.05 ▲0.02 | 159.28 ▼6.06 | 125.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 52 | 27 | 638 |
JavaScript | 3 | 11 | 0 | 178 |
CSS | 2 | 0 | 0 | 120 |
HTML | 1 | 0 | 0 | 46 |
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 code | 0.26 |
Average class complexity | 6.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 28 | 100.00% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 49 | |
▷ Global constants | 1 | 2.04% |
▷ Class constants | 48 | 97.96% |
▷ Public constants | 48 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widget/images/icon.png | 0.32KB | 0.25KB | ▼ 22.94% |