Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼4.22ms] Passed 4 tests
An overview of server-side resources used by Mirrorgrid Demo Importer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.75 ▼1.79 |
Dashboard /wp-admin | 3.81 ▲0.46 | 45.47 ▼13.39 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 48.69 ▲4.59 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 82.02 ▼6.28 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 38.86 ▲5.88 |
Import Demo Content /wp-admin/themes.php?page=mirrorgrid-demo-importer | 3.64 | 33.94 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Mirrorgrid Demo Importer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.53 ▲0.26 | 1.76 ▲0.11 | 43.61 ▲4.57 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.08 | 85.42 ▼5.94 | 39.65 ▲0.76 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.07 | 35.60 ▼1.05 | 33.30 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 22.98 ▼0.04 | 648.93 ▼29.10 | 51.57 ▼3.07 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.31 ▲0.08 | 98.99 ▼1.92 | 42.86 ▼3.19 |
Import Demo Content /wp-admin/themes.php?page=mirrorgrid-demo-importer | 939 | 1.93 | 34.81 | 30.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
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 | 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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/mirrorgrid-demo-importer/includes/class-mg-customizer-option.php:12
- > PHP Warning
Use of undefined constant MG_ABSPATH - assumed 'MG_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mirrorgrid-demo-importer/includes/class-mg-logger.php on line 10
- > PHP Fatal error
require(): Failed opening required 'MG_ABSPATHinc/importer/class-logger.php' (include_path='.:/usr/share/php') in wp-content/plugins/mirrorgrid-demo-importer/includes/class-mg-logger.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'MG_Importer_Logger' not found in wp-content/plugins/mirrorgrid-demo-importer/includes/importer/class-mg-importer-logger-cli.php:3
- > PHP Fatal error
Uncaught Error: Class 'MG_Importer_WXR_Importer' not found in wp-content/plugins/mirrorgrid-demo-importer/includes/class-mg-wxr-importer.php:10
- > PHP Warning
require(MG_ABSPATHinc/importer/class-logger.php): failed to open stream: No such file or directory in wp-content/plugins/mirrorgrid-demo-importer/includes/class-mg-logger.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: demo, content, menus, settings, data...
mirrorgrid-demo-importer/mirrorgrid-demo-importer.php Passed 13 tests
"Mirrorgrid Demo Importer" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
Demo importer for Mirrorgrid Store themes.
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 plugin3,156 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 958 | 1,479 | 2,992 |
JavaScript | 1 | 19 | 7 | 94 |
CSS | 1 | 24 | 7 | 70 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 25.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 2 | 11.11% |
Methods | 152 | |
▷ Static methods | 37 | 24.34% |
▷ Public methods | 91 | 59.87% |
▷ Protected methods | 34 | 22.37% |
▷ Private methods | 27 | 17.76% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 12 | |
▷ Global constants | 10 | 83.33% |
▷ Class constants | 2 | 16.67% |
▷ Public constants | 2 | 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