Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.45ms] Passed 4 tests
Server-side resources used by Dan's GSheets Data Embedder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.69 ▲3.69 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.45 ▼4.97 |
Posts /wp-admin/edit.php | 3.39 ▲0.02 | 43.87 ▼5.53 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.51 ▼8.71 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 37.27 ▲1.42 |
Dan's gSheets /wp-admin/tools.php?page=dans-gsheets-settings | 3.20 | 32.20 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Dan's GSheets Data Embedder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.37 ▲0.02 | 1.73 ▼0.39 | 40.76 ▼2.91 |
Dashboard /wp-admin | 2,202 ▲25 | 5.57 ▼0.01 | 86.34 ▼13.27 | 38.29 ▼7.18 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▼0.05 | 34.05 ▼2.49 | 32.20 ▼6.51 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.59 ▼0.09 | 671.84 ▲0.14 | 57.93 ▲3.66 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.22 ▲0.04 | 97.46 ▼7.44 | 43.48 ▼5.91 |
Dan's gSheets /wp-admin/tools.php?page=dans-gsheets-settings | 925 | 1.99 | 21.44 | 51.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=dans-gsheets-settings
- > Warning in wp-content/plugins/dans-gsheets/dans-gsheets.php+86
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/tools.php?page=dans-gsheets-settings
- > Notice in wp-content/plugins/dans-gsheets/dans-gsheets.php+96
Trying to access array offset on value of type bool
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dans-gsheets/dans-gsheets.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: google sheets, spreadsheet, gsheets, dan, embed...
dans-gsheets/dans-gsheets.php Passed 13 tests
The main PHP script in "Dan's GSheets Data Embedder" version 1.2 is automatically included on every request by WordPress
36 characters long description:
A custom Google Sheets Data Embedder
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 detected154 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 43 | 23 | 154 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin