Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/sm2wp-google-minimal/classes/sm2wp_googleplus.php+5
Constant WP_POST_REVISIONS already defined
Server metrics [RAM: ▼1.58MB] [CPU: ▼56.06ms] Passed 4 tests
A check of server-side resources used by Social Media 2 WordPress for Google+
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.13 ▼10.34 |
Dashboard /wp-admin | 2.37 ▼0.97 | 8.87 ▼58.27 |
Posts /wp-admin/edit.php | 2.38 ▼0.99 | 7.10 ▼42.43 |
Add New Post /wp-admin/post-new.php | 2.37 ▼3.52 | 6.64 ▼96.22 |
Media Library /wp-admin/upload.php | 2.37 ▼0.86 | 7.19 ▼27.33 |
SM2WP / Google+ /wp-admin/options-general.php?page=sm2wp-googleplus | 2.38 | 7.85 |
Server storage [IO: ▲0.06MB] [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: 7 new files
Database: no new tables, 9 new options
New WordPress options |
---|
gfw_info |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
gfw_schedule |
widget_recent-posts |
gfw_errors |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Media 2 WordPress for Google+
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,783 ▲37 | 14.24 ▼0.11 | 1.66 ▲0.07 | 40.22 ▲1.19 |
Dashboard /wp-admin | 2,199 ▲18 | 5.64 ▼0.09 | 85.08 ▼31.35 | 37.65 ▼6.75 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.02 | 37.65 ▲3.13 | 36.29 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 23.17 ▲0.19 | 675.70 ▲8.23 | 58.72 ▲5.81 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.10 ▼0.08 | 112.18 ▲6.89 | 46.73 ▲2.78 |
SM2WP / Google+ /wp-admin/options-general.php?page=sm2wp-googleplus | 1,495 | 1.78 | 27.05 | 46.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/sm2wp-google-minimal/classes/sm2wp_googleplus_admin.php+3
Constant WP_POST_REVISIONS already defined
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- gfw_info
- db_upgraded
- gfw_errors
- widget_theysaidso_widget
- can_compress_scripts
- gfw_schedule
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=sm2wp-googleplus
- > Notice in wp-content/plugins/sm2wp-google-minimal/classes/sm2wp_googleplus_admin.php+3
Constant WP_POST_REVISIONS already defined
SRP 50% 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
Please take a closer look at the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/sm2wp-google-minimal/classes/google_plus.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sm2wp-google-minimal/classes/sm2wp_googleplus.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/sm2wp-google-minimal/classes/google_plus.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sm2wp-google-minimal/views/admin.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sm2wp-google-minimal/classes/common.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sm2wp-google-minimal/classes/google_plus.php on line 3
- > PHP Warning
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 96% from 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: blog, import, seo, social, google...
sm2wp-google-minimal/sm2wp.php 92% from 13 tests
This is the main PHP file of "Social Media 2 WordPress for Google+" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sm2wp-google-minimal.php" instead of "sm2wp.php")
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
Success! There were no dangerous files found in this plugin1,246 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 223 | 19 | 1,246 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 2 | 28.57% |
▷ Concrete classes | 5 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 15 | 28.30% |
▷ Public methods | 43 | 81.13% |
▷ Protected methods | 5 | 9.43% |
▷ Private methods | 5 | 9.43% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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 files were detected