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.03MB] [CPU: ▼9.96ms] Passed 4 tests
This is a short check of server-side resources used by Axle Demo Importer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.48 ▼5.88 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.03 ▼5.34 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.41 ▼5.72 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.64 ▼17.81 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 30.19 ▼10.44 |
Axle Demo Importer /wp-admin/themes.php?page=axle-demo-importer | 3.27 | 33.81 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Axle Demo Importer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.27 ▼0.13 | 1.68 ▼0.09 | 44.67 ▲4.63 |
Dashboard /wp-admin | 2,196 ▲19 | 5.51 ▼0.09 | 94.87 ▲3.35 | 35.57 ▼7.58 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▲0.06 | 41.00 ▲0.57 | 35.85 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.15 ▲0.17 | 621.97 ▼58.34 | 52.53 ▼8.38 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▼0.01 | 96.85 ▼6.63 | 42.53 ▼5.13 |
Axle Demo Importer /wp-admin/themes.php?page=axle-demo-importer | 902 | 2.13 | 24.41 | 30.89 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/axle-demo-importer/includes/libraries/xml-importer.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/axle-demo-importer/includes/libraries/dat-importer.php on line 203
- > PHP Fatal error
Uncaught Error: Call to undefined function axle_demo_importer_get_demo_content_settings() in wp-content/plugins/axle-demo-importer/templates/upload-form.php:8
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/axle-demo-importer/includes/libraries/dat-importer.php on line 203
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-wp-customize-setting.php' (include_path='.:/usr/share/php') in wp-content/plugins/axle-demo-importer/includes/libraries/dat-importer.php on line 203
- > PHP Warning
require_once(ABSPATHWPINC/class-wp-customize-setting.php): failed to open stream: No such file or directory in wp-content/plugins/axle-demo-importer/includes/libraries/dat-importer.php on line 203
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/axle-demo-importer/includes/libraries/xml-importer.php on line 9
- > PHP Warning
require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/axle-demo-importer/includes/libraries/xml-importer.php on line 9
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Importer page) image required
axle-demo-importer/axle-demo-importer.php 85% from 13 tests
"Axle Demo Importer" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,971 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 461 | 710 | 1,971 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 36.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 6.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 3 | 27.27% |
Methods | 76 | |
▷ Static methods | 4 | 5.26% |
▷ Public methods | 65 | 85.53% |
▷ Protected methods | 1 | 1.32% |
▷ Private methods | 10 | 13.16% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin