Benchmarks
Plugin footprint 40% 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-content/plugins/automatic-posting/automatic-posting.php+133
Non-static method automatic_posting::init() should not be called statically
Server metrics [RAM: ▼1.92MB] [CPU: ▼57.60ms] Passed 4 tests
An overview of server-side resources used by Automatic Posting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.99 ▼36.84 |
Dashboard /wp-admin | 2.08 ▼1.22 | 6.45 ▼52.52 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.07 ▼44.65 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.44 ▼96.38 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.07 ▼33.18 |
Server storage [IO: ▲0.12MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Automatic Posting
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.36 ▲0.01 | 1.78 ▼0.01 | 44.34 ▲0.37 |
Dashboard /wp-admin | 2,196 ▲19 | 5.55 ▼0.13 | 84.28 ▼17.75 | 43.16 ▼3.74 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.02 | 35.33 ▼1.68 | 35.42 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.11 ▲0.01 | 669.53 ▼6.78 | 65.86 ▲0.37 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.15 ▼0.13 | 100.53 ▲4.62 | 44.45 ▲2.36 |
Automatic Posting /wp-admin/automatic_posting.php | 26 | 0.42 | 0.09 | 13.51 |
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
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/automatic-posting/automatic-posting.php+133
Non-static method automatic_posting::init() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/automatic-posting/templates/page-settings.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: post_title in wp-content/plugins/automatic-posting/templates/page-settings.php on line 14
- > PHP Notice
Undefined variable: post_tagline in wp-content/plugins/automatic-posting/templates/page-settings.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatic-posting/automatic-posting.php:20
- > PHP Notice
Undefined variable: post_link in wp-content/plugins/automatic-posting/templates/page-settings.php on line 65
- > PHP Notice
Undefined variable: post_content in wp-content/plugins/automatic-posting/templates/page-settings.php on line 44
- > PHP Notice
Undefined variable: post_tags in wp-content/plugins/automatic-posting/templates/page-settings.php on line 55
- > PHP Notice
Undefined variable: post_url in wp-content/plugins/automatic-posting/templates/page-settings.php on line 75
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/automatic-posting/templates/page-settings.php on line 114
- > PHP Notice
Undefined variable: post_categories in wp-content/plugins/automatic-posting/templates/page-settings.php on line 132
- > PHP Notice
Undefined variable: post_description in wp-content/plugins/automatic-posting/templates/page-settings.php on line 33
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/automatic_posting.php
- > Network (severe)
wp-admin/automatic_posting.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (In Screenshot you can see how you can run automatic posting.) image missing
automatic-posting/automatic-posting.php Passed 13 tests
The entry point to "Automatic Posting" version 1.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
This plugins adds settings for automatic posting in all categories
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin186 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 76 | 24 | 186 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot-1.png | 114.56KB | 40.61KB | ▼ 64.55% |