Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼142.77ms] Passed 4 tests
A check of server-side resources used by GS to WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.54 ▲10.94 |
Dashboard /wp-admin | 3.06 ▲0.01 | 53.76 ▲8.16 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 52.75 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 92.94 ▼582.72 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 35.37 ▲3.66 |
GetSimple to WordPress /wp-admin/tools.php?page=gs2wp | 2.97 | 34.44 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for GS to WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.83 ▲0.21 | 12.29 ▲1.86 | 55.14 ▼2.87 |
Dashboard /wp-admin | 2,975 ▲41 | 5.90 ▼0.20 | 150.47 ▼7.15 | 117.58 ▼7.23 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 69.39 ▲1.35 | 96.89 ▼7.56 |
Add New Post /wp-admin/post-new.php | 1,503 ▼78 | 18.54 ▼1.96 | 404.39 ▲2.87 | 117.37 ▼4.15 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.00 ▼0.02 | 155.30 ▲3.77 | 126.18 ▼0.42 |
GetSimple to WordPress /wp-admin/tools.php?page=gs2wp | 1,061 | 2.08 | 58.95 | 61.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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)
Everything seems fine, however this is by no means an exhaustive test
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/gs-to-wp/gs-to-wp.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: getsimple, sql, data, import
gs-to-wp/gs-to-wp.php Passed 13 tests
The principal PHP file in "GS to WP" v. 1.0.2 is loaded by WordPress automatically on each request
55 characters long description:
Import pages and media from GetSimple CMS to WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin480 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 32 | 422 |
PO File | 1 | 17 | 16 | 50 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected