Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.88MB] [CPU: ▼39.36ms] Passed 4 tests
An overview of server-side resources used by Google+ Interactive Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 33.36 ▼5.21 |
Dashboard /wp-admin | 3.07 ▼0.24 | 25.10 ▼32.32 |
Posts /wp-admin/edit.php | 3.07 ▼0.29 | 30.87 ▼23.68 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.82 | 23.40 ▼83.42 |
Media Library /wp-admin/upload.php | 3.07 ▼0.17 | 23.33 ▼18.00 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Google+ Interactive Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.12 ▼0.23 | 43.42 ▲41.60 | 44.33 ▲1.43 |
Dashboard /wp-admin | 2,223 ▲52 | 5.86 ▲0.30 | 93.33 ▲1.09 | 42.77 ▼2.62 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 2.01 ▲0.02 | 41.30 ▲3.15 | 37.00 ▼1.15 |
Add New Post /wp-admin/post-new.php | 6,866 ▲5,340 | 26.25 ▲3.18 | 849.22 ▲199.51 | 54.71 ▲4.62 |
Media Library /wp-admin/upload.php | 1,431 ▲37 | 4.21 ▲0.02 | 100.35 ▲0.01 | 46.70 ▲0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/google-interactive-posts/templates/header_tpl.php
- > /wp-content/plugins/google-interactive-posts/templates/footer_tpl.php
- > /wp-content/plugins/google-interactive-posts/templates/form.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-interactive-posts/index.php:12
- > PHP Notice
Undefined variable: api_key in wp-content/plugins/google-interactive-posts/templates/form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/google-interactive-posts/templates/api_instructions.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: sharing, google, interactive, share, shares...
google-interactive-posts/index.php 92% from 13 tests
The entry point to "Google+ Interactive Posts" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("google-interactive-posts.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected371 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 53 | 40 | 312 |
CSS | 2 | 7 | 1 | 58 |
JavaScript | 1 | 0 | 13 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.72 |
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 | 11 | |
▷ Named functions | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.56MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/imgs/6_6.png | 139.14KB | 57.71KB | ▼ 58.52% |
templates/imgs/1_1.png | 56.81KB | 23.01KB | ▼ 59.49% |
style/btn_icons_sprite.png | 0.83KB | 1.37KB | 0.00% |
templates/imgs/5_5.png | 100.15KB | 38.64KB | ▼ 61.41% |
templates/imgs/2_2.png | 63.62KB | 26.57KB | ▼ 58.24% |