Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.10MB] [CPU: ▼42.28ms] Passed 4 tests
Server-side resources used by Advance Guest Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▼0.59 | 14.36 ▼26.07 |
Dashboard /wp-admin | 2.91 ▼0.39 | 17.82 ▼37.47 |
Posts /wp-admin/edit.php | 2.91 ▼0.45 | 20.68 ▼30.29 |
Add New Post /wp-admin/post-new.php | 2.91 ▼2.98 | 18.91 ▼75.29 |
Media Library /wp-admin/upload.php | 2.91 ▼0.32 | 20.21 ▼16.02 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Advance Guest Post
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,042 ▲281 | 14.04 ▼0.34 | 12.00 ▲10.38 | 43.56 ▲1.33 |
Dashboard /wp-admin | 2,205 ▲28 | 5.90 ▲0.29 | 83.17 ▼4.70 | 69.92 ▲31.77 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.03 ▲0.02 | 39.22 ▲3.99 | 36.29 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,700 ▲160 | 22.42 ▲4.15 | 761.88 ▲121.87 | 57.73 ▲11.06 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.23 ▲0.04 | 98.71 ▼12.25 | 45.17 ▲2.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/advance-guest-post/advance-guest-post.php+432
Trying to get property 'ID' of non-object
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advance-guest-post/lib/agp-functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function agp_parse_file_errors() in wp-content/plugins/advance-guest-post/lib/error.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/advance-guest-post/lib/ajax-upload.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_lostpassword_url() in wp-content/plugins/advance-guest-post/lib/login.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/advance-guest-post/lib/ajax-upload.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/advance-guest-post/lib/form.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wordpress, front-end, membership, posting
advance-guest-post/advance-guest-post.php Passed 13 tests
The main PHP script in "Advance Guest Post" version 1.9 is automatically included on every request by WordPress
55 characters long description:
Now your user can submit post without backend enjoy :).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,709 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 401 | 168 | 1,150 |
CSS | 4 | 40 | 2 | 375 |
JavaScript | 5 | 56 | 46 | 184 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.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 | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
42 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/arrow-090.png | 0.54KB | 0.41KB | ▼ 23.69% |
lib/images/full/btn_exit_hover.png | 3.82KB | 0.86KB | ▼ 77.42% |
lib/images/logo-64.png | 6.08KB | 1.87KB | ▼ 69.18% |
lib/images/nonfull/navigate_left_arrow_hover.png | 3.67KB | 0.73KB | ▼ 80.03% |
lib/images/weather_sun.png | 0.61KB | 0.52KB | ▼ 14.01% |