Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.92ms] Passed 4 tests
A check of server-side resources used by Sheet2Site
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.54 ▼7.37 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.92 ▼6.42 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.18 ▲6.96 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.21 ▼3.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 30.28 ▼6.59 |
Sheet2Site /wp-admin/plugins.php?page=sheet2site | 3.33 | 33.16 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sheet2Site
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 14.48 ▲0.10 | 1.99 ▼0.09 | 43.85 ▼0.57 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼1.03 | 108.81 ▼5.80 | 40.00 ▼3.09 |
Posts /wp-admin/edit.php | 2,090 ▲22 | 2.00 ▼0.01 | 39.37 ▲3.34 | 34.15 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.35 ▲5.82 | 632.46 ▼65.19 | 59.96 ▲0.08 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.20 ▼0.05 | 98.78 ▼14.33 | 43.14 ▼4.48 |
Sheet2Site /wp-admin/plugins.php?page=sheet2site | 937 | 2.07 | 27.39 | 45.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sheet2site\\add_action() in wp-content/plugins/sheet2site/sheet2site.php:212
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6, #7, #8, #9 in sheet2site/assets to your readme.txt
- Tags: There are too many tags (11 tag instead of maximum 10)
sheet2site/sheet2site.php Passed 13 tests
"Sheet2Site" version 1.0.18's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Embed your Google Sheet into your WordPress website
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
Everything looks great! No dangerous files found in this plugin218 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 8 | 183 |
JavaScript | 1 | 0 | 0 | 18 |
CSS | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 1 | |
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 | 12 | |
▷ Named functions | 12 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.62MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/embed2.png | 96.24KB | 33.75KB | ▼ 64.93% |
assets/img/wp1.png | 88.30KB | 22.50KB | ▼ 74.52% |
assets/img/wp2a.png | 30.73KB | 9.22KB | ▼ 69.99% |
assets/img/wp4.png | 30.73KB | 9.22KB | ▼ 69.99% |
assets/img/embed1.png | 234.56KB | 78.20KB | ▼ 66.66% |