78% ink-official

Code Review | INK Official

WordPress plugin INK Official scored78%from 54 tests.

About plugin

  • Plugin page: ink-official
  • Plugin version: 4.1.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2020
  • Latest release: Mar 17, 2023
  • Number of updates: 92
  • Update frequency: every 10.1 days
  • Top authors: inkforall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,255 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3045.04 ▲2.59
Dashboard /wp-admin3.68 ▲0.3453.91 ▼16.47
Posts /wp-admin/edit.php3.74 ▲0.3860.61 ▲5.50
Add New Post /wp-admin/post-new.php6.15 ▲0.2791.15 ▼13.60
Media Library /wp-admin/upload.php3.53 ▲0.3038.47 ▼12.53
INK Plugin /wp-admin/options-general.php?page=inkimport3.4938.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲17814.43 ▲0.241.82 ▲0.2342.65 ▲1.51
Dashboard /wp-admin2,345 ▲1686.19 ▲0.53120.51 ▲30.7139.39 ▼0.04
Posts /wp-admin/edit.php2,358 ▲2553.34 ▲1.2752.13 ▲9.8984.70 ▲46.34
Add New Post /wp-admin/post-new.php6,320 ▲4,79119.00 ▼4.08868.09 ▲256.5737.60 ▼17.20
Media Library /wp-admin/upload.php1,416 ▲194.14 ▼0.0882.53 ▼47.2846.16 ▼13.79
INK Plugin /wp-admin/options-general.php?page=inkimport1,0183.0741.2656.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

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:
LanguageFilesBlank linesComment linesLines of code
JSON50036,778
PHP181,0796144,360
SVG5103,957
JavaScript9121163941
CSS75165478
Sass250115
Markdown132054

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 code0.43
Average class complexity77.33
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods144
▷ Static methods2416.67%
▷ Public methods5437.50%
▷ Protected methods8861.11%
▷ Private methods21.39%
Functions42
▷ Named functions3788.10%
▷ Anonymous functions511.90%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
FileSize - originalSize - compressedSavings
images/top.png26.02KB9.85KB▼ 62.15%
images/ink.png8.38KB3.80KB▼ 54.67%
src/images/top.png26.02KB9.85KB▼ 62.15%
src/images/ink.png8.38KB3.80KB▼ 54.67%