Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼290.17ms] Passed 4 tests
This is a short check of server-side resources used by Social Auto Poster
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 57.34 ▲1.75 |
Dashboard /wp-admin | 3.54 ▲0.13 | 39.23 ▲0.75 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 124.00 ▲82.97 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 100.64 ▼1,163.59 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 30.58 ▲0.43 |
Documentation /wp-admin/admin.php?page=faposter-doclinks | 3.22 | 20.59 |
Check Premium Version /wp-admin/admin.php?page=faposter-premium | 3.22 | 26.20 |
Social Auto Poster /wp-admin/admin.php?page=afap | 3.45 | 41.26 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 116 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_afap_logs |
New WordPress options |
---|
afap_settings |
afap_extra_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Social Auto Poster
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲44 | 15.63 ▲0.72 | 6.00 ▲0.29 | 2.23 ▼0.39 |
Dashboard /wp-admin | 2,928 ▲70 | 6.03 ▼0.12 | 118.89 ▼28.74 | 155.37 ▼8.53 |
Posts /wp-admin/edit.php | 2,728 ▲43 | 3.37 ▲0.14 | 63.96 ▼1.15 | 145.63 ▼66.24 |
Add New Post /wp-admin/post-new.php | 1,855 ▲157 | 25.27 ▲2.43 | 412.93 ▼13.72 | 184.88 ▼4.10 |
Media Library /wp-admin/upload.php | 1,734 ▲39 | 5.52 ▲0.03 | 155.88 ▲0.46 | 191.79 ▲13.10 |
Documentation /wp-admin/admin.php?page=faposter-doclinks | 1,211 | 8.25 | 298.57 | 229.31 |
Check Premium Version /wp-admin/admin.php?page=faposter-premium | 2,410 | 17.93 | 540.67 | 214.49 |
Social Auto Poster /wp-admin/admin.php?page=afap | 2,251 | 8.97 | 187.09 | 214.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_afap_logs
- Zombie WordPress options detected upon uninstall: 2 options
- afap_settings
- afap_extra_settings
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/accesspress-facebook-auto-post/inc/main-page.php
- > /wp-content/plugins/accesspress-facebook-auto-post/inc/cores/fb-authorization-callback.php
- > /wp-content/plugins/accesspress-facebook-auto-post/inc/cores/save-settings.php
- > /wp-content/plugins/accesspress-facebook-auto-post/inc/cores/fb-authorization.php
- > /wp-content/plugins/accesspress-facebook-auto-post/accesspress-facebook-auto-post.php
- > /wp-content/plugins/accesspress-facebook-auto-post/inc/header.php
- 60× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/accesspress-facebook-auto-post/api/facebook-mobile/Facebook/HttpClients/FacebookGuzzleHttpClient.php:34
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/accesspress-facebook-auto-post/api/facebook-mobile/Facebook/Exceptions/FacebookAuthenticationException.php:31
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/accesspress-facebook-auto-post/inc/cores/auto-post.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/accesspress-facebook-auto-post/api/facebook-mobile/Facebook/Exceptions/FacebookAuthorizationException.php:31
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/accesspress-facebook-auto-post/inc/tabs/logs.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Url\\UrlDetectionInterface' not found in wp-content/plugins/accesspress-facebook-auto-post/api/facebook-mobile/Facebook/Url/FacebookUrlDetectionHandler.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PersistentData\\PersistentDataInterface' not found in wp-content/plugins/accesspress-facebook-auto-post/api/facebook-mobile/Facebook/PersistentData/FacebookMemoryPersistentDataHandler.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-facebook-auto-post/inc/tabs/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNodeFactory' not found in wp-content/plugins/accesspress-facebook-auto-post/api/facebook-mobile/Facebook/GraphNodes/GraphObjectFactory.php:36
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/accesspress-facebook-auto-post/api/facebook-mobile/Facebook/Exceptions/FacebookThrottleException.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=faposter-doclinks
- > Javascript (severe) in unknown
https://accesspressthemes.com/documentation/accesspress-facebook-auto-post/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=faposter-premium
- > Network (severe)
https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/admin.php?page=faposter-premium
- > Javascript (severe) in unknown
https://accesspressthemes.com/wordpress-plugins/accesspress-social-auto-post/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please describe screenshot #3 in accesspress-facebook-auto-post/assets to your readme.txt
accesspress-facebook-auto-post/accesspress-facebook-auto-post.php Passed 13 tests
"Social Auto Poster" version 2.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
A plugin to publish your wordpress posts to your facebook profile and fan pages.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/accesspress-facebook-auto-post/api/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 1,289 | 6,327 | 6,725 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 2 | 39 | 9 | 379 |
JavaScript | 1 | 8 | 5 | 127 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 74 | |
▷ Abstract classes | 2 | 2.70% |
▷ Concrete classes | 72 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 604 | |
▷ Static methods | 22 | 3.64% |
▷ Public methods | 518 | 85.76% |
▷ Protected methods | 68 | 11.26% |
▷ Private methods | 18 | 2.98% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 41 | |
▷ Global constants | 15 | 36.59% |
▷ Class constants | 26 | 63.41% |
▷ Public constants | 26 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.59MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fauto-poster-logo1.png | 23.93KB | 4.13KB | ▼ 82.72% |
images/app-id-app-secret.png | 108.27KB | 42.08KB | ▼ 61.14% |
images/fauto-poster-logo.png | 115.67KB | 4.13KB | ▼ 96.43% |
images/business-type.png | 97.86KB | 36.83KB | ▼ 62.36% |
images/theme.png | 52.01KB | 17.38KB | ▼ 66.59% |