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.17MB] [CPU: ▼8.10ms] Passed 4 tests
An overview of server-side resources used by XML Import
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 36.70 ▼2.37 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.85 ▼5.31 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 45.03 ▼2.95 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 80.36 ▼21.75 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.60 ▲6.85 |
Add New /wp-admin/post-new.php?post_type=xmli_feed | 3.43 | 42.84 |
All Feeds /wp-admin/edit.php?post_type=xmli_feed | 3.43 | 32.82 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for XML Import
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.14 ▼1.45 | 1.72 ▲0.07 | 40.89 ▲0.83 |
Dashboard /wp-admin | 2,233 ▲48 | 5.79 ▲0.87 | 96.53 ▼8.23 | 40.49 ▼4.97 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▲0.01 | 38.52 ▲1.04 | 31.62 ▼4.58 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.39 ▲0.33 | 637.20 ▼37.90 | 57.30 ▼9.03 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.22 ▲0.01 | 98.93 ▼5.30 | 42.64 ▼6.02 |
Add New /wp-admin/post-new.php?post_type=xmli_feed | 1,975 | 2.81 | 67.55 | 54.52 |
All Feeds /wp-admin/edit.php?post_type=xmli_feed | 1,080 | 2.01 | 34.29 | 32.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=xmli_feed
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/xml-import/includes/class-xml-import.php+1142
simplexml_load_file(): I/O warning : failed to load external entity "wp-content/plugins/xml-import/tmp/.11.xml"
- > GET request to /wp-admin/post-new.php?post_type=xmli_feed
- > POST request to /wp-admin/admin-ajax.php
- > Error in wp-content/plugins/xml-import/includes/class-xml-import.php+1145
Uncaught Error: Call to a member function getName() on bool in wp-content/plugins/xml-import/includes/class-xml-import.php:1145
Stack trace:
#0 wp-includes/class-wp-hook.php(310): XML_Import->get_level()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin-ajax.php(188): do_action()
#4 {main}
thrown
SRP 50% 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/xml-import/xml-import.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=xmli_feed
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: custom post, meta fields, import, xml
xml-import/xml-import.php Passed 13 tests
The principal PHP file in "XML Import" v. 1.0.4 is loaded by WordPress automatically on each request
49 characters long description:
Import XML Feeds and map result on (custom) posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,192 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 266 | 61 | 1,016 |
PO File | 1 | 43 | 44 | 107 |
CSS | 1 | 0 | 0 | 69 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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 | 88.00 |
▷ Minimum class complexity | 88.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 96.67% |
▷ Protected methods | 1 | 3.33% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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