Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.64ms] Passed 4 tests
Analyzing server-side resources used by WordPress Importer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.02 ▼1.32 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.44 ▼2.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.08 ▼1.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.50 ▼5.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.91 ▲0.54 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Importer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.21 | 1.70 ▼0.22 | 41.10 ▼7.79 |
Dashboard /wp-admin | 2,209 ▲24 | 5.88 ▼0.02 | 97.86 ▼3.81 | 39.56 ▲1.36 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.04 | 41.17 ▲4.13 | 34.02 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.40 ▲0.85 | 636.14 ▲1.60 | 52.63 ▼2.66 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.17 ▼0.03 | 110.56 ▲6.10 | 42.12 ▼2.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% 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 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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/wordpress-importer/parsers.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/wordpress-importer/class-wp-import.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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: importer, wordpress
wordpress-importer/wordpress-importer.php Passed 13 tests
The principal PHP file in "WordPress Importer" v. 0.8.1 is loaded by WordPress automatically on each request
101 characters long description:
Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file.
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
Good job! No executable or dangerous file extensions detected1,790 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 330 | 416 | 1,790 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 67.40 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 7.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 2 | 3.85% |
▷ Public methods | 49 | 94.23% |
▷ Protected methods | 3 | 5.77% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected