Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼0.51ms] Passed 4 tests
This is a short check of server-side resources used by Automatic Post Share
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 41.30 ▼2.63 |
Dashboard /wp-admin | 3.58 ▲0.27 | 51.20 ▲3.19 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.57 ▼2.17 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 92.78 ▲1.65 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.55 ▲1.10 |
APS Settings /wp-admin/options-general.php?page=aps-setting | 3.40 | 32.20 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Automatic Post Share
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.24 ▼1.13 | 1.96 ▼0.04 | 44.39 ▼1.54 |
Dashboard /wp-admin | 2,210 ▲22 | 4.89 ▼1.00 | 114.91 ▼4.51 | 43.08 ▲1.21 |
Posts /wp-admin/edit.php | 2,093 ▼0 | 2.03 ▼0.01 | 35.11 ▼12.11 | 32.51 ▼7.97 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 22.14 ▼1.12 | 672.83 ▼8.98 | 54.71 ▲4.45 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.05 | 101.55 ▼20.18 | 45.53 ▼3.12 |
APS Settings /wp-admin/options-general.php?page=aps-setting | 812 | 2.06 | 25.30 | 28.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=aps-setting
- > Notice in wp-content/plugins/automatic-post-share/lib/facebook/fb_wrapper.php+94
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/automatic-post-share/automatic-post-share.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/automatic-post-share/templates/template-setting.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: share, social, facebook
automatic-post-share/automatic-post-share.php Passed 13 tests
Analyzing the main PHP file in "Automatic Post Share" version 1.2
76 characters long description:
A simple wordpress plugin to share post automatically while saving new post.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/automatic-post-share/lib/facebook/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 222 | 698 | 1,205 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 27.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 7 | 7.78% |
▷ Public methods | 48 | 53.33% |
▷ Protected methods | 42 | 46.67% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin