Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼4.21ms] Passed 4 tests
A check of server-side resources used by Idea Factory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 38.73 ▲2.91 |
Dashboard /wp-admin | 3.74 ▲0.39 | 56.21 ▼9.02 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 48.03 ▲2.82 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 82.88 ▼13.53 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 39.92 ▲8.18 |
New Idea /wp-admin/post-new.php?post_type=ideas | 3.78 | 49.59 |
Reset /wp-admin/edit.php?post_type=ideas&page=idea-factory-reset | 3.57 | 38.60 |
All Ideas /wp-admin/edit.php?post_type=ideas | 3.71 | 50.62 |
Help /wp-admin/edit.php?post_type=ideas&page=idea-factory-docs | 3.57 | 35.73 |
Settings /wp-admin/edit.php?post_type=ideas&page=idea-factory-settings | 3.57 | 35.78 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_idea_factory |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
if_settings_advanced |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
if_settings_main |
Browser metrics Passed 4 tests
Checking browser requirements for Idea Factory
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲224 | 14.82 ▲0.46 | 1.72 ▲0.10 | 45.73 ▲0.58 |
Dashboard /wp-admin | 2,391 ▲223 | 6.32 ▲0.71 | 110.14 ▲18.64 | 38.81 ▼3.41 |
Posts /wp-admin/edit.php | 2,319 ▲219 | 3.48 ▲1.51 | 52.71 ▲14.76 | 31.80 ▼6.39 |
Add New Post /wp-admin/post-new.php | 1,570 ▲39 | 23.25 ▲0.34 | 649.40 ▲51.81 | 36.65 ▼47.84 |
Media Library /wp-admin/upload.php | 1,456 ▲62 | 4.36 ▲0.18 | 81.88 ▼18.44 | 42.90 ▲0.03 |
New Idea /wp-admin/post-new.php?post_type=ideas | 2,452 | 7.70 | 182.19 | 67.06 |
Reset /wp-admin/edit.php?post_type=ideas&page=idea-factory-reset | 1,014 | 3.20 | 39.40 | 23.88 |
All Ideas /wp-admin/edit.php?post_type=ideas | 1,325 | 3.42 | 49.79 | 26.86 |
Help /wp-admin/edit.php?post_type=ideas&page=idea-factory-docs | 1,090 | 3.38 | 40.23 | 28.52 |
Settings /wp-admin/edit.php?post_type=ideas&page=idea-factory-settings | 1,161 | 3.30 | 54.95 | 35.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- theysaidso_admin_options
- if_settings_advanced
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- if_settings_main
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idea-factory/includes/class.type.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idea-factory/admin/includes/class.meta.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idea-factory/public/includes/helpers.php:126
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/idea-factory/templates/template-ideas.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idea-factory/includes/class.process-vote.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idea-factory/includes/class.process-status.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/idea-factory/admin/includes/class.settings.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idea-factory/public/includes/class.assets.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/idea-factory/public/includes/class.shortcodes.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idea-factory/includes/class.process-entry.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: feedback, front end voting, front end submission, voting, idea...
idea-factory/idea-factory.php Passed 13 tests
The entry point to "Idea Factory" version 1.2 is a PHP file that has certain tags in its header comment area
44 characters long description:
Front-end user submission and voting system.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,855 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 653 | 692 | 1,421 |
LESS | 8 | 104 | 59 | 736 |
JavaScript | 5 | 121 | 33 | 345 |
PO File | 2 | 123 | 129 | 321 |
Markdown | 1 | 12 | 0 | 31 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 7 | 9.09% |
▷ Public methods | 72 | 93.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.49% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin