Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼10.00ms] Passed 4 tests
Analyzing server-side resources used by INK Official
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 45.04 ▲2.59 |
Dashboard /wp-admin | 3.68 ▲0.34 | 53.91 ▼16.47 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 60.61 ▲5.50 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 91.15 ▼13.60 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.47 ▼12.53 |
INK Plugin /wp-admin/options-general.php?page=inkimport | 3.49 | 38.01 |
Server storage [IO: ▲5.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ink_yotube_settings |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
INK Official: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 14.43 ▲0.24 | 1.82 ▲0.23 | 42.65 ▲1.51 |
Dashboard /wp-admin | 2,345 ▲168 | 6.19 ▲0.53 | 120.51 ▲30.71 | 39.39 ▼0.04 |
Posts /wp-admin/edit.php | 2,358 ▲255 | 3.34 ▲1.27 | 52.13 ▲9.89 | 84.70 ▲46.34 |
Add New Post /wp-admin/post-new.php | 6,320 ▲4,791 | 19.00 ▼4.08 | 868.09 ▲256.57 | 37.60 ▼17.20 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.14 ▼0.08 | 82.53 ▼47.28 | 46.16 ▼13.79 |
INK Plugin /wp-admin/options-general.php?page=inkimport | 1,018 | 3.07 | 41.26 | 56.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- ink_yotube_settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=inkimport
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=inkimport
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ink-official/src/metadata.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ink-official/modules/post-sidebar/init.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ink-official/src/ink_settings.php:9
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: seo, inkforall, ink editor importer, import ink file, ink
ink-official/ink-content-block.php 85% from 13 tests
"INK Official" version 4.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("ink-official.php" instead of "ink-content-block.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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
There were no executable files found in this plugin46,683 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 36,778 |
PHP | 18 | 1,079 | 614 | 4,360 |
SVG | 5 | 1 | 0 | 3,957 |
JavaScript | 9 | 121 | 163 | 941 |
CSS | 7 | 51 | 65 | 478 |
Sass | 2 | 5 | 0 | 115 |
Markdown | 1 | 32 | 0 | 54 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 77.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 24 | 16.67% |
▷ Public methods | 54 | 37.50% |
▷ Protected methods | 88 | 61.11% |
▷ Private methods | 2 | 1.39% |
Functions | 42 | |
▷ Named functions | 37 | 88.10% |
▷ Anonymous functions | 5 | 11.90% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/top.png | 26.02KB | 9.85KB | ▼ 62.15% |
images/ink.png | 8.38KB | 3.80KB | ▼ 54.67% |
src/images/top.png | 26.02KB | 9.85KB | ▼ 62.15% |
src/images/ink.png | 8.38KB | 3.80KB | ▼ 54.67% |