Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼292.96ms] Passed 4 tests
An overview of server-side resources used by cm4all-wp-impex
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.23 | 56.53 ▲7.85 |
Dashboard /wp-admin | 3.58 ▲0.17 | 33.35 ▼0.64 |
Posts /wp-admin/edit.php | 3.80 ▲0.16 | 35.69 ▼2.20 |
Add New Post /wp-admin/post-new.php | 7.10 ▲0.13 | 92.46 ▼1,169.30 |
Media Library /wp-admin/upload.php | 3.46 ▲0.17 | 25.31 ▲0.31 |
Impex /wp-admin/tools.php?page=cm4all_wp_impex_wp_admin_dashboard | 5.70 | 33.32 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 59 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_impex_snapshots |
New WordPress options |
---|
impex_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for cm4all-wp-impex
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,798 ▲44 | 15.85 ▲0.26 | 6.20 ▲0.41 | 2.88 ▲0.16 |
Dashboard /wp-admin | 2,895 ▲34 | 6.13 ▼0.08 | 117.29 ▼16.78 | 156.51 ▼7.64 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.22 ▼0.01 | 63.39 ▲0.95 | 141.38 ▼7.91 |
Add New Post /wp-admin/post-new.php | 1,759 ▲69 | 21.35 ▼0.05 | 447.03 ▼8.39 | 161.68 ▼2.85 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.54 ▲0.01 | 152.39 ▲10.02 | 189.36 ▲6.39 |
Impex /wp-admin/tools.php?page=cm4all_wp_impex_wp_admin_dashboard | 1,379 | 9.43 | 208.88 | 133.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_impex_snapshots
- This plugin does not fully uninstall, leaving 1 option in the database
- impex_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #2 (This is the second screen shot) image missing
cm4all-wp-impex/plugin.php 92% from 13 tests
Analyzing the main PHP file in "cm4all-wp-impex" version 1.2.1
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cm4all-wp-impex.php" instead of "plugin.php")
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 detected5,247 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 884 | 894 | 3,636 |
JavaScript | 12 | 44 | 61 | 1,459 |
JSON | 1 | 0 | 0 | 111 |
CSS | 3 | 0 | 4 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 10 | |
Traits | 2 | |
Classes | 27 | |
▷ Abstract classes | 15 | 55.56% |
▷ Concrete classes | 12 | 44.44% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 5 | 3.36% |
▷ Public methods | 128 | 85.91% |
▷ Protected methods | 21 | 14.09% |
▷ Private methods | 0 | 0.00% |
Functions | 82 | |
▷ Named functions | 45 | 54.88% |
▷ Anonymous functions | 37 | 45.12% |
Constants | 149 | |
▷ Global constants | 1 | 0.67% |
▷ Class constants | 148 | 99.33% |
▷ Public constants | 148 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin