Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲4.92MB] [CPU: ▲16.73ms] Passed 4 tests
Analyzing server-side resources used by Guest posting / Frontend Posting wordpress plugin - WP Front User Submit / Front Editor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.91 ▲5.45 | 67.10 ▲27.06 |
Dashboard /wp-admin | 8.93 ▲5.63 | 73.27 ▲23.90 |
Posts /wp-admin/edit.php | 8.93 ▲5.58 | 86.39 ▲38.09 |
Add New Post /wp-admin/post-new.php | 8.93 ▲3.05 | 81.73 ▼20.02 |
Media Library /wp-admin/upload.php | 8.93 ▲5.70 | 70.43 ▲35.98 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.93 | 63.38 |
Server storage [IO: ▲16.47MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 328 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
fs_accounts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
fs_active_plugins |
theysaidso_admin_options |
fs_debug_mode |
Browser metrics Passed 4 tests
Guest posting / Frontend Posting wordpress plugin - WP Front User Submit / Front Editor: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲76 | 14.68 ▲0.31 | 1.60 ▲0.01 | 27.97 ▼13.55 |
Dashboard /wp-admin | 2,242 ▲65 | 5.58 ▼0.04 | 92.69 ▲5.09 | 42.50 ▲1.95 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.03 ▲0.01 | 40.78 ▼0.54 | 38.08 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.51 ▲0.52 | 688.81 ▲80.80 | 50.02 ▼1.98 |
Media Library /wp-admin/upload.php | 1,444 ▲41 | 4.20 ▼0.07 | 100.27 ▲1.87 | 43.60 ▲1.18 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,114 | 1.67 | 25.67 | 26.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/front-editor/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- fs_debug_mode
- fs_active_plugins
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/front-editor/templates/editor/checklist.php
- > /wp-content/plugins/front-editor/templates/editor/table.php
- > /wp-content/plugins/front-editor/templates/editor/embed.php
- > /wp-content/plugins/front-editor/templates/editor/quote.php
- 109× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/front-editor/templates/editor/embed.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/front-editor/templates/admin/settings/form-notification-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/front-editor/templates/front-editor/text.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/front-editor/templates/front-editor/tags.php:2
- > PHP Notice
Undefined variable: post_status in wp-content/plugins/front-editor/templates/user-admin.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/front-editor/templates/admin/settings/form-submission-display.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/front-editor/templates/front-editor/post-title.php:2
- > PHP Notice
Undefined variable: field in wp-content/plugins/front-editor/templates/front-editor/tinymce.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/front-editor/templates/editor/gallery.php on line 23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/front-editor/templates/editor/quote.php on line 9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Screenshot #9 (Themes settings) image missing
front-editor/front-editor.php 85% from 13 tests
This is the main PHP file of "Guest posting / Frontend Posting wordpress plugin - WP Front User Submit / Front Editor" version 4.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 253 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "7.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected196,484 lines of code in 266 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 32 | 15,468 | 16,673 | 109,753 |
PHP | 180 | 9,010 | 18,627 | 38,592 |
JSON | 4 | 0 | 0 | 37,315 |
CSS | 15 | 1,053 | 149 | 6,768 |
Sass | 25 | 338 | 37 | 3,454 |
PO File | 2 | 134 | 136 | 340 |
SVG | 7 | 0 | 3 | 239 |
Markdown | 1 | 5 | 0 | 23 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 66.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 2 | 2.70% |
▷ Concrete classes | 72 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,441 | |
▷ Static methods | 350 | 24.29% |
▷ Public methods | 1,041 | 72.24% |
▷ Protected methods | 17 | 1.18% |
▷ Private methods | 383 | 26.58% |
Functions | 120 | |
▷ Named functions | 110 | 91.67% |
▷ Anonymous functions | 10 | 8.33% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.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
10 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/cloud-computing.240cce61.png | 7.98KB | 7.61KB | ▼ 4.55% |
assets/img/delete.png | 7.13KB | 3.11KB | ▼ 56.37% |
assets/img/logo_24.png | 1.48KB | 1.56KB | 0.00% |
assets/img/admin-logo.png | 2.63KB | 1.88KB | ▼ 28.31% |
assets/img/cloud-computing.png | 7.98KB | 7.61KB | ▼ 4.55% |