Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼138.46ms] Passed 4 tests
Analyzing server-side resources used by Guest Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 40.62 ▲6.88 |
Dashboard /wp-admin | 3.11 ▲0.05 | 45.88 ▲0.78 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 45.18 ▲2.76 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 90.53 ▼556.74 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 31.59 ▼0.63 |
All Items /wp-admin/edit.php?post_type=guest_post | 3.09 | 32.03 |
Add New /wp-admin/post-new.php?post_type=guest_post | 3.15 | 48.90 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Guest Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,135 ▲539 | 18.30 ▲2.71 | 42.90 ▲33.77 | 51.68 ▲5.20 |
Dashboard /wp-admin | 3,005 ▲68 | 5.67 ▼0.32 | 152.36 ▲0.13 | 108.14 ▼0.94 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.73 ▲0.01 | 72.96 ▲4.88 | 82.84 ▼6.23 |
Add New Post /wp-admin/post-new.php | 1,638 ▲138 | 21.59 ▲2.99 | 295.49 ▼86.06 | 105.55 ▼2.93 |
Media Library /wp-admin/upload.php | 1,842 ▲35 | 4.81 ▼0.22 | 135.13 ▼27.00 | 118.84 ▼0.03 |
All Items /wp-admin/edit.php?post_type=guest_post | 1,441 | 2.63 | 68.27 | 73.33 |
Add New /wp-admin/post-new.php?post_type=guest_post | 2,933 | 9.06 | 230.91 | 136.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/guest-post/public/init.php
- > /wp-content/plugins/guest-post/admin/post-types.php
- > /wp-content/plugins/guest-post/admin/init.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/guest-post/public/posts-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/guest-post/guest-post.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guest-post/public/submission-handler.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/guest-post/public/post-form.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: custom post type, frontend submission
guest-post/guest-post.php Passed 13 tests
The main PHP script in "Guest Posts" version 1.0.0 is automatically included on every request by WordPress
28 characters long description:
Handle Guest Post Submission
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 plugin400 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 44 | 26 | 251 |
CSS | 2 | 4 | 6 | 76 |
JavaScript | 2 | 15 | 9 | 73 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.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 | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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