Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.93MB] [CPU: ▼1.52ms] Passed 4 tests
Server-side resources used by GatherContent Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 40.49 ▲0.02 |
Dashboard /wp-admin | 4.45 ▲1.10 | 51.29 ▼6.07 |
Posts /wp-admin/edit.php | 4.50 ▲1.14 | 54.39 ▲4.97 |
Add New Post /wp-admin/post-new.php | 6.97 ▲1.08 | 98.70 ▼5.01 |
Media Library /wp-admin/upload.php | 4.31 ▲1.08 | 43.84 ▲9.57 |
GatherContent /wp-admin/admin.php?page=gathercontent-import | 4.30 | 39.68 |
Support /wp-admin/admin.php?page=gathercontent-import-support | 4.60 | 443.69 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 152 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
gathercontent_version |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for GatherContent Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲48 | 14.31 ▼0.06 | 1.68 ▼0.10 | 42.11 ▲0.28 |
Dashboard /wp-admin | 2,228 ▲48 | 5.60 ▲0.02 | 84.42 ▼2.98 | 71.00 ▲30.30 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.01 ▲0.01 | 37.15 ▼3.47 | 34.61 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,576 ▲210 | 18.55 ▲1.84 | 631.40 ▲75.92 | 50.79 ▼1.25 |
Media Library /wp-admin/upload.php | 1,442 ▲45 | 4.11 ▼0.13 | 97.97 ▼4.75 | 68.28 ▲21.69 |
GatherContent /wp-admin/admin.php?page=gathercontent-import | 913 | 2.00 | 23.78 | 26.90 |
Support /wp-admin/admin.php?page=gathercontent-import-support | 870 | 2.13 | 24.58 | 28.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- gathercontent_version
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/gathercontent-import/includes/views/tmpl-gc-tab-wrapper.php
- > /wp-content/plugins/gathercontent-import/includes/views/underscore-data-status.php
- > /wp-content/plugins/gathercontent-import/includes/views/underscore-data-mapping-name.php
- > /wp-content/plugins/gathercontent-import/includes/views/tmpl-gc-select2-item.php
- 86× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gathercontent-import/includes/views/user-profile.php:3
- > PHP Fatal error
Uncaught Error: Class 'GatherContent\\Importer\\Admin\\Post_Base' not found in wp-content/plugins/gathercontent-import/includes/classes/admin/bulk.php:20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gathercontent-import/includes/views/gc-post-column-row.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gathercontent-import/includes/views/existing-mapping-notice.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/gathercontent-import/vendor/ralouphie/mimey/tests/src/MimeTypesTest.php:3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/gathercontent-import/vendor/ralouphie/mimey/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/gathercontent-import/vendor/ralouphie/mimey/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'GatherContent\\Importer\\Base' not found in wp-content/plugins/gathercontent-import/includes/classes/admin/mapping/base.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/gathercontent-import/includes/views/tmpl-gc-metabox-statuses.php:1
- > PHP Fatal error
Uncaught Error: Class 'GatherContent\\Importer\\Base' not found in wp-content/plugins/gathercontent-import/includes/classes/admin/mapping/field-types/base.php:18
- > PHP Fatal error
Uncaught Error: Class 'GatherContent\\Importer\\Views\\Form_Element' not found in wp-content/plugins/gathercontent-import/includes/classes/views/input.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
gathercontent-import/gathercontent-importer.php 92% from 13 tests
"GatherContent Plugin" version 3.2.19's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gathercontent-import.php" instead of "gathercontent-importer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin27,033 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 2,390 | 5,022 | 16,740 |
JavaScript | 14 | 2,219 | 818 | 8,858 |
CSS | 4 | 136 | 12 | 797 |
Markdown | 4 | 152 | 0 | 356 |
JSON | 3 | 0 | 0 | 172 |
SVG | 2 | 0 | 2 | 57 |
XML | 2 | 4 | 0 | 32 |
YAML | 2 | 5 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 11 | 16.92% |
▷ Concrete classes | 54 | 83.08% |
▷ Final classes | 0 | 0.00% |
Methods | 601 | |
▷ Static methods | 53 | 8.82% |
▷ Public methods | 464 | 77.20% |
▷ Protected methods | 131 | 21.80% |
▷ Private methods | 6 | 1.00% |
Functions | 56 | |
▷ Named functions | 27 | 48.21% |
▷ Anonymous functions | 29 | 51.79% |
Constants | 21 | |
▷ Global constants | 7 | 33.33% |
▷ Class constants | 14 | 66.67% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin