Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼1.47ms] Passed 4 tests
A check of server-side resources used by RSG Retrieve Google Drive Spreadsheet
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 42.21 ▲0.79 |
Dashboard /wp-admin | 3.68 ▲0.38 | 53.45 ▲3.61 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 50.05 ▲2.64 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 85.17 ▼12.91 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 39.18 ▲5.96 |
RSG Addons /wp-admin/admin.php?page=rsg_addons_page | 3.51 | 34.41 |
Spreadsheet /wp-admin/admin.php?page=rsggds | 3.74 | 367.60 |
Server storage [IO: ▲3.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 525 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-posts |
rsggds_title |
rsggds_tbl_w |
recovery_mode_email_last_sent |
rsggds_tbl_color |
can_compress_scripts |
rsggds_link |
rsggds_tbl_h |
RSGGDS_VERSION |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for RSG Retrieve Google Drive Spreadsheet
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲194 | 13.85 ▼0.70 | 7.51 ▲5.39 | 44.02 ▲0.26 |
Dashboard /wp-admin | 2,245 ▲57 | 5.97 ▲1.04 | 97.80 ▼19.14 | 39.48 ▼8.47 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.29 ▲0.28 | 39.45 ▼2.15 | 32.73 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 17.87 ▲0.25 | 611.59 ▼72.60 | 56.99 ▼0.68 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.34 ▲0.17 | 97.65 ▼8.65 | 45.80 ▲1.02 |
RSG Addons /wp-admin/admin.php?page=rsg_addons_page | 830 | 2.20 | 26.24 | 34.29 |
Spreadsheet /wp-admin/admin.php?page=rsggds | 846 | 1.53 | 6.36 | 36.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- recovery_mode_email_last_sent
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=rsggds
- > Error in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/DefaultServiceRequest.php+356
Uncaught Google\Spreadsheet\Exception\UnauthorizedException: You need permission in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/DefaultServiceRequest.php:356
Stack trace:
#0 wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/DefaultServiceRequest.php(241): Google\Spreadsheet\DefaultServiceRequest->execute()
#1 wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/SpreadsheetService.php(72): Google\Spreadsheet\DefaultServiceRequest->get()
#2 wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/SpreadsheetService.php(98): Google\Spreadsheet\SpreadsheetService->getResourceById()
#3 w
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
- 293× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/monolog/monolog/tests/Monolog/Formatter/ChromePHPFormatterTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'GoogleSpreadsheet\\Tests\\Google\\Spreadsheet\\TestBase' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/asimlqt/php-google-spreadsheet-client/tests/Google/Spreadsheet/SpreadsheetServiceTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/monolog/monolog/tests/Monolog/Handler/FirePHPHandlerTest.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google\\Spreadsheet\\Exception\\Exception' not found in wp-content/plugins/rsg-retrieve-google-drive-spreadsheet/lib/google/vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/Exception/BadRequestException.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: spreadsheet, google drive, shortcode, rsggds, table
rsg-retrieve-google-drive-spreadsheet/rsggds.php 77% from 13 tests
The main PHP file in "RSG Retrieve Google Drive Spreadsheet" ver. 0.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/lang")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("rsg-retrieve-google-drive-spreadsheet.php" instead of "rsggds.php")
Code Analysis 97% from 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 detected64,168 lines of code in 493 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 423 | 10,198 | 27,991 | 52,371 |
JavaScript | 3 | 269 | 936 | 4,922 |
Markdown | 28 | 1,551 | 0 | 4,742 |
JSON | 18 | 0 | 0 | 1,291 |
XML | 14 | 8 | 0 | 498 |
CSS | 2 | 18 | 53 | 260 |
YAML | 4 | 16 | 0 | 75 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 627.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 41 | |
Interfaces | 28 | |
Traits | 5 | |
Classes | 414 | |
▷ Abstract classes | 10 | 2.42% |
▷ Concrete classes | 404 | 97.58% |
▷ Final classes | 10 | 2.48% |
Methods | 3,286 | |
▷ Static methods | 139 | 4.23% |
▷ Public methods | 2,816 | 85.70% |
▷ Protected methods | 217 | 6.60% |
▷ Private methods | 253 | 7.70% |
Functions | 272 | |
▷ Named functions | 81 | 29.78% |
▷ Anonymous functions | 191 | 70.22% |
Constants | 334 | |
▷ Global constants | 26 | 7.78% |
▷ Class constants | 308 | 92.22% |
▷ Public constants | 308 | 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
No PNG images were found in this plugin