Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.19ms] Passed 4 tests
This is a short check of server-side resources used by Novarum Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.42 ▲2.58 |
Dashboard /wp-admin | 3.40 ▲0.09 | 52.38 ▼2.90 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.61 ▼0.21 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 85.13 ▼10.98 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.83 ▲1.33 |
Novarum Importer /wp-admin/options-general.php?page=Novarumimporter_settings | 3.26 | 32.57 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Novarum Importer: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.71 ▼0.86 | 9.18 ▲7.27 | 44.53 ▼0.94 |
Dashboard /wp-admin | 2,203 ▲23 | 5.65 ▼0.01 | 94.99 ▲7.53 | 42.49 ▼3.95 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▲0.03 | 38.61 ▲0.79 | 35.80 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 22.67 ▼0.22 | 633.89 ▼75.03 | 56.01 ▼6.23 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.30 ▲0.08 | 104.08 ▼9.86 | 45.74 ▼1.43 |
Novarum Importer /wp-admin/options-general.php?page=Novarumimporter_settings | 931 | 2.01 | 21.75 | 22.59 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=Novarumimporter_settings
- > Notice in wp-content/plugins/novarum-json-importer/admin/class-novarumimporter-admin.php+123
Undefined variable: active_tab
- > GET request to /wp-admin/options-general.php?page=Novarumimporter_settings
- > Notice in wp-content/plugins/novarum-json-importer/admin/partials/novarumimporter-admin-request.php+38
Undefined index: ni_settings_fields
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/novarum-json-importer/admin/partials/novarumimporter-admin-display.php
- > /wp-content/plugins/novarum-json-importer/public/partials/novarumimporter-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/novarum-json-importer/admin/partials/novarumimporter-admin-request.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/novarum-json-importer/admin/partials/novarumimporter-admin-response.php:20
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
3 plugin tags: rest api, json, import
novarum-json-importer/novarumimporter.php 85% from 13 tests
The primary PHP file in "Novarum Importer" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("novarum-json-importer.php" instead of "novarumimporter.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected564 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 250 | 560 | 531 |
JavaScript | 2 | 15 | 55 | 25 |
CSS | 2 | 2 | 8 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin