Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.27ms] Passed 4 tests
This is a short check of server-side resources used by WM Options Import Export
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 39.11 ▲9.29 |
Dashboard /wp-admin | 3.07 ▲0.01 | 42.55 ▼2.07 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 39.44 ▼5.16 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 87.25 ▼556.72 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 41.20 ▲2.86 |
Export Options /wp-admin/tools.php?page=wmwpoie_export | 3.06 | 31.19 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WM Options Import Export
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.82 ▲0.19 | 8.24 ▼0.54 | 48.17 ▼0.84 |
Dashboard /wp-admin | 2,997 ▲66 | 5.94 ▲0.01 | 144.72 ▲3.86 | 102.72 ▼13.82 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.01 | 65.23 ▲1.32 | 90.55 ▲3.61 |
Add New Post /wp-admin/post-new.php | 1,686 ▲14 | 14.25 ▼4.61 | 383.94 ▲24.37 | 115.12 ▲8.85 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.01 | 158.92 ▲6.51 | 135.21 ▲13.41 |
Export Options /wp-admin/tools.php?page=wmwpoie_export | 1,777 | 2.34 | 57.91 | 71.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wm-options-import-export/wm_wpoie.php:22
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Wordpress Admin page for export options), #2 (Wordpress Admin page for import options)
wm-options-import-export/wm_wpoie.php 92% from 13 tests
"WM Options Import Export" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wm-options-import-export.php" instead of "wm_wpoie.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin475 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 116 | 35 | 454 |
JavaScript | 1 | 5 | 0 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 26.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin