Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.82MB] [CPU: ▲32.99ms] 75% from 4 tests
Server-side resources used by Post to Google My Business (Google Business Profile)
Please take the time to fix the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.82MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.33 ▲5.87 | 69.17 ▲26.26 |
Dashboard /wp-admin | 9.35 ▲6.05 | 85.53 ▲35.72 |
Posts /wp-admin/edit.php | 9.36 ▲6.00 | 94.35 ▲50.04 |
Add New Post /wp-admin/post-new.php | 11.26 ▲5.38 | 116.57 ▲25.34 |
Media Library /wp-admin/upload.php | 9.36 ▲6.13 | 76.88 ▲44.65 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.36 | 69.98 |
Server storage [IO: ▲6.71MB] [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: 501 new files
Database: no new tables, 16 new options
New WordPress options |
---|
widget_recent-posts |
mbp_version |
mbp_quick_post_settings |
fs_active_plugins |
widget_theysaidso_widget |
pgmb_evergreen_settings |
mbp_post_type_settings |
mbp_misc |
db_upgraded |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Post to Google My Business (Google Business Profile): an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,006 ▲259 | 14.83 ▲0.12 | 1.54 ▼0.09 | 30.26 ▼14.54 |
Dashboard /wp-admin | 2,414 ▲236 | 6.38 ▲0.45 | 121.44 ▲12.73 | 45.45 ▲2.35 |
Posts /wp-admin/edit.php | 2,350 ▲250 | 3.48 ▲1.53 | 56.99 ▲19.16 | 33.99 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,593 ▲67 | 21.34 ▼1.81 | 713.47 ▲22.86 | 38.68 ▼22.51 |
Media Library /wp-admin/upload.php | 1,488 ▲88 | 4.41 ▲0.16 | 83.13 ▼10.42 | 45.08 ▲3.57 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,327 | 3.20 | 48.31 | 27.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/post-to-google-my-business/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 16 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- mbp_google_settings
- mbp_post_type_settings
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- fs_debug_mode
- mbp_version
- pgmb_evergreen_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/post-to-google-my-business/vendor/a5hleyrich/wp-background-processing/tests/bootstrap.php
- > /wp-content/plugins/post-to-google-my-business/post-to-google-my-business.php
- 129× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'PGMB\\Metabox\\JSMetaboxInterface' not found in wp-content/plugins/post-to-google-my-business/src/Metabox/PostCreationMetabox.php:23
- > PHP Fatal error
Uncaught Error: Class 'PGMB\\Vendor\\Cron\\AbstractField' not found in wp-content/plugins/post-to-google-my-business/vendor-prefixed/dragonmantank/cron-expression/src/Cron/DayOfWeekField.php:28
- > PHP Fatal error
Uncaught Error: Class 'PGMB\otifications\\BasicNotification' not found in wp-content/plugins/post-to-google-my-business/src/Notifications/FeatureNotification.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/post-to-google-my-business/vendor-prefixed/html2text/html2text/test/SpanTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PGMB\\Vendor\\Cron\\AbstractField' not found in wp-content/plugins/post-to-google-my-business/vendor-prefixed/dragonmantank/cron-expression/src/Cron/YearField.php:17
- > PHP Fatal error
Uncaught Error: Interface 'PGMB\\Upgrader\\Upgrade' not found in wp-content/plugins/post-to-google-my-business/src/Upgrader/Upgrade_2_2_11.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/post-to-google-my-business/vendor-prefixed/html2text/html2text/test/InsTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/post-to-google-my-business/vendor-prefixed/html2text/html2text/test/PrintTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PGMB\\Admin\\AbstractPage' not found in wp-content/plugins/post-to-google-my-business/src/Admin/PostCampaignsUpsell.php:5
- > PHP Fatal error
Uncaught Error: Interface 'PGMB\\EventManagement\\SubscriberInterface' not found in wp-content/plugins/post-to-google-my-business/src/Subscriber/SubPostListAjaxSubscriber.php:9
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: local search, gmb, google places, google my business posts, google plus...
post-to-google-my-business/post-to-google-my-business.php Passed 13 tests
Analyzing the main PHP file in "Post to Google My Business (Google Business Profile)" version 3.1.18
84 characters long description:
Automatically create a post on Google My Business when creating a new WordPress post
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
Everything looks great! No dangerous files found in this plugin82,260 lines of code in 409 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 315 | 10,872 | 21,635 | 45,813 |
JSON | 10 | 0 | 0 | 27,734 |
PO File | 4 | 1,652 | 2,020 | 4,199 |
JavaScript | 42 | 539 | 615 | 2,922 |
Markdown | 8 | 265 | 0 | 691 |
CSS | 17 | 63 | 19 | 367 |
Bourne Shell | 1 | 23 | 11 | 147 |
XML | 7 | 16 | 30 | 144 |
YAML | 3 | 15 | 2 | 126 |
Sass | 1 | 5 | 0 | 103 |
make | 1 | 4 | 0 | 14 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 25.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 24 | |
Traits | 1 | |
Classes | 203 | |
▷ Abstract classes | 11 | 5.42% |
▷ Concrete classes | 192 | 94.58% |
▷ Final classes | 1 | 0.52% |
Methods | 2,243 | |
▷ Static methods | 309 | 13.78% |
▷ Public methods | 1,732 | 77.22% |
▷ Protected methods | 89 | 3.97% |
▷ Private methods | 422 | 18.81% |
Functions | 163 | |
▷ Named functions | 103 | 63.19% |
▷ Anonymous functions | 60 | 36.81% |
Constants | 194 | |
▷ Global constants | 100 | 51.55% |
▷ Class constants | 94 | 48.45% |
▷ Public constants | 94 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
22 PNG files occupy 0.31MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/features/3_0_0_multi_account.png | 19.84KB | 7.47KB | ▼ 62.36% |
img/video.png | 0.28KB | 0.28KB | 0.00% |
img/promotional/evergreen-content.png | 22.58KB | 10.19KB | ▼ 54.85% |
css/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
img/promotional/post-campaigns.png | 45.82KB | 16.69KB | ▼ 63.58% |