Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method raefghribi_auto_post::getLastPostsID() should not be called statically
Server metrics [RAM: ▲0.28MB] [CPU: ▲12.96ms] Passed 4 tests
Server-side resources used by Social Media Auto Post and Scheduling contents
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.12 ▼2.37 |
Dashboard /wp-admin | 3.74 ▲0.44 | 65.52 ▲18.79 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 69.95 ▲24.95 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 118.49 ▲31.00 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 51.14 ▲10.45 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 93 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_last_done |
wp_fb_auto_programs |
wp_fb_pages |
wp_fb_logs |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Social Media Auto Post and Scheduling contents: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,579 ▲808 | 14.82 ▲0.07 | 1.59 ▼0.69 | 44.52 ▲4.76 |
Dashboard /wp-admin | 2,990 ▲802 | 6.24 ▲1.33 | 110.75 ▲9.64 | 65.25 ▲22.02 |
Posts /wp-admin/edit.php | 2,871 ▲785 | 2.40 ▲0.39 | 48.29 ▲13.61 | 34.18 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 23.33 ▲0.27 | 658.05 ▼22.72 | 55.70 ▲2.92 |
Media Library /wp-admin/upload.php | 2,167 ▲776 | 4.48 ▲0.29 | 99.66 ▲2.19 | 40.80 ▼3.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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 | 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/auto-post-contents-for-facebook/index.php
- 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookCanvasHelper' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/Helpers/FacebookPageTabHelper.php:199
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/Helpers/FacebookCanvasHelper.php:181
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/Exceptions/FacebookClientException.php:181
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/Helpers/FacebookJavaScriptHelper.php:181
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/GraphNodes/GraphApplication.php:187
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FacebookResponse' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/FacebookBatchResponse.php:205
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/Exceptions/FacebookServerException.php:181
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\Url\\UrlDetectionInterface' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/Url/FacebookUrlDetectionHandler.php:181
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/GraphNodes/GraphPage.php:181
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/auto-post-contents-for-facebook/Facebook/GraphNodes/GraphNode.php:181
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: auto post, fb, scheduler, publish
auto-post-contents-for-facebook/raefghribi-auto-post.php 85% from 13 tests
The primary PHP file in "Social Media Auto Post and Scheduling contents" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("auto-post-contents-for-facebook.php" instead of "raefghribi-auto-post.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,567 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 1,051 | 5,569 | 5,041 |
PO File | 4 | 148 | 148 | 410 |
CSS | 1 | 24 | 6 | 116 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 70 | |
▷ Abstract classes | 1 | 1.43% |
▷ Concrete classes | 69 | 98.57% |
▷ Final classes | 0 | 0.00% |
Methods | 548 | |
▷ Static methods | 31 | 5.66% |
▷ Public methods | 504 | 91.97% |
▷ Protected methods | 26 | 4.74% |
▷ Private methods | 18 | 3.28% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 22 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 22 | 100.00% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fb-auto-post.png | 22.60KB | 3.80KB | ▼ 83.20% |