Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼5.34ms] 75% from 4 tests
This is a short check of server-side resources used by Demo Importer Plus
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,279.10ms on /wp-admin/themes.php?page=demo-importer-plus)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 36.80 ▼2.38 |
Dashboard /wp-admin | 3.50 ▲0.19 | 47.47 ▼3.49 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 48.65 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 85.05 ▼14.83 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 34.46 ▲0.04 |
Demo Importer Plus /wp-admin/themes.php?page=demo-importer-plus | 3.70 | 1,279.10 |
Server storage [IO: ▲0.88MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
demo_importer_plus_recent_import_log_file |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Demo Importer Plus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.31 | 1.74 ▲0.06 | 39.90 ▲0.57 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▲0.98 | 97.93 ▼2.77 | 37.09 ▼8.03 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.14 ▲0.12 | 39.87 ▲4.92 | 38.14 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.22 ▲5.74 | 663.00 ▼11.91 | 55.32 ▲0.16 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.15 ▼0.03 | 94.73 ▼6.32 | 40.93 ▼6.23 |
Demo Importer Plus /wp-admin/themes.php?page=demo-importer-plus | 1,880 | 2.47 | 31.48 | 49.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- demo_importer_plus_recent_import_log_file
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/demo-importer-plus/inc/constants.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/demo-importer-plus/admin/partials/getting-started.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/demo-importer-plus/inc/importers/batch-processing/class-demo-importer-plus-batch-processing.php on line 79
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/demo-importer-plus/inc/importers/batch-processing/helpers/class-demo-importer-plus-image-importer.php on line 60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/demo-importer-plus/inc/classes/class-demo-importer-plus-ajax.php:21
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/demo-importer-plus/inc/importers/batch-processing/class-demo-importer-plus-batch-processing.php on line 79
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/demo-importer-plus/inc/importers/batch-processing/helpers/class-demo-importer-plus-image-importer.php on line 60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/demo-importer-plus/inc/importers/class-demo-importer-plus-sites-helper.php:40
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/demo-importer-plus/inc/importers/batch-processing/helpers/class-demo-importer-plus-image-importer.php on line 60
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/demo-importer-plus/demo-importer-plus.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in demo-importer-plus/assets to your readme.txt
demo-importer-plus/demo-importer-plus.php 92% from 13 tests
The primary PHP file in "Demo Importer Plus" version 1.1.8 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
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
Success! There were no dangerous files found in this plugin13,755 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,665 | 2,578 | 6,176 |
JavaScript | 6 | 495 | 535 | 5,001 |
Sass | 3 | 105 | 19 | 1,374 |
CSS | 2 | 130 | 17 | 1,113 |
SVG | 2 | 0 | 1 | 91 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 36.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 276.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 2 | 7.69% |
▷ Concrete classes | 24 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 274 | |
▷ Static methods | 48 | 17.52% |
▷ Public methods | 204 | 74.45% |
▷ Protected methods | 59 | 21.53% |
▷ Private methods | 11 | 4.01% |
Functions | 12 | |
▷ Named functions | 3 | 25.00% |
▷ Anonymous functions | 9 | 75.00% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/sass/images/placeholder.png | 50.74KB | 25.55KB | ▼ 49.64% |
(invalid) assets/images/placeholder.png | 105.54KB | 0.00KB | ▼ 100.00% |