Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼262.71ms] Passed 4 tests
A check of server-side resources used by Korea Map
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 34.36 ▲14.37 |
Dashboard /wp-admin | 3.10 ▲0.04 | 35.78 ▼13.98 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 41.62 ▲6.49 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 86.56 ▼1,039.20 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 32.09 ▼4.14 |
Korea Map /wp-admin/options-general.php?page=kims_admin_settings | 3.01 | 26.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
kimsmap |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Korea Map
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,823 ▲217 | 16.24 ▲0.70 | 11.67 ▲3.10 | 51.59 ▲7.03 |
Dashboard /wp-admin | 2,969 ▲116 | 5.97 ▲0.08 | 135.53 ▲5.64 | 100.74 ▲1.59 |
Posts /wp-admin/edit.php | 2,713 ▲7 | 2.68 ▼0.01 | 65.77 ▲1.46 | 86.28 ▼14.00 |
Add New Post /wp-admin/post-new.php | 1,856 ▲3 | 17.71 ▼1.35 | 361.60 ▲9.59 | 111.09 ▲1.65 |
Media Library /wp-admin/upload.php | 1,779 ▲7 | 4.99 ▼0.02 | 140.01 ▼7.26 | 113.39 ▼4.19 |
Korea Map /wp-admin/options-general.php?page=kims_admin_settings | 1,452 | 2.34 | 53.19 | 102.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- kimsmap
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/korea-map/korea-map.php:49
- > PHP Warning
include(KIMS_INCLUDE_DIRsetting.php): failed to open stream: No such file or directory in wp-content/plugins/korea-map/inc/admin.php on line 3
- > PHP Warning
Use of undefined constant KIMS_INCLUDE_DIR - assumed 'KIMS_INCLUDE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/korea-map/inc/admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/korea-map/inc/admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/korea-map/inc/user.php:2
- > PHP Warning
include(): Failed opening 'KIMS_INCLUDE_DIRsetting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/korea-map/inc/admin.php on line 3
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please a description for screenshot #4 in korea-map/assets to your readme.txt
korea-map/korea-map.php 92% from 13 tests
Analyzing the main PHP file in "Korea Map" version 0.1.3
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin371 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 92 | 28 | 310 |
JavaScript | 1 | 20 | 3 | 51 |
CSS | 1 | 2 | 2 | 10 |
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.27 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/m01.png | 1.37KB | 1.14KB | ▼ 16.93% |
images/m04.png | 1.33KB | 1.20KB | ▼ 10.13% |
images/m02.png | 1.43KB | 1.17KB | ▼ 18.40% |
images/m06.png | 1.35KB | 1.19KB | ▼ 12.34% |
images/m05.png | 1.73KB | 1.36KB | ▼ 21.23% |