Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.79ms] Passed 4 tests
Server-side resources used by Guest Post Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 39.41 ▼3.67 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.43 ▼3.75 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.75 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.21 ▼13.04 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.50 ▲2.88 |
All Guest Posts /wp-admin/edit.php?post_type=guestpost | 3.30 | 37.03 |
Add New /wp-admin/post-new.php?post_type=guestpost | 3.29 | 42.53 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Guest Post Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.36 ▼0.94 | 2.19 ▼0.27 | 51.30 ▲5.39 |
Dashboard /wp-admin | 2,254 ▲66 | 5.85 ▲0.97 | 98.19 ▼13.65 | 36.53 ▼11.75 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.00 ▼0.00 | 37.72 ▲2.35 | 33.79 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,577 ▲41 | 18.20 ▼4.93 | 598.94 ▼76.85 | 55.10 ▲5.72 |
Media Library /wp-admin/upload.php | 1,433 ▲48 | 4.20 ▼0.01 | 96.80 ▲0.40 | 43.94 ▲1.62 |
All Guest Posts /wp-admin/edit.php?post_type=guestpost | 1,098 | 1.95 | 35.19 | 31.57 |
Add New /wp-admin/post-new.php?post_type=guestpost | 1,549 | 2.67 | 50.08 | 52.61 |
Settings /wp-admin/simple-guest-post.php | 26 | 0.44 | 0.08 | 14.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/simple-guest-post/fpdf/tutorial/makefont.php
- > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/simple-guest-post/fpdf/tutorial/tuto5.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-guest-post/simple-guest-post.php:11
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/simple-guest-post/fpdf/makefont/ttfparser.php on line 382
- > PHP Fatal error
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 user-side errors
- > GET request to /wp-admin/simple-guest-post.php
- > Network (severe)
wp-admin/simple-guest-post.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: pdf, guest post, user post, front end post, admin...
simple-guest-post/simple-guest-post.php Passed 13 tests
The main PHP script in "Guest Post Plugin" version 1.1 is automatically included on every request by WordPress
103 characters long description:
Guest Post Plugin allows your visitors to submit posts without registration from anywhere on your site.
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
No dangerous file extensions were detected13,697 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,199 | 12 | 6,863 |
PHP | 27 | 277 | 320 | 3,583 |
HTML | 59 | 72 | 0 | 3,236 |
PO File | 1 | 2 | 1 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 57.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 146 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 108 | 73.97% |
▷ Protected methods | 38 | 26.03% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |