93% the-taste-of-ink

Code Review | The Taste of Ink

WordPress plugin The Taste of Ink scored 93% from 54 tests.

About plugin

  • Plugin page: the-taste-of-ink
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 5.8.1
  • First release: May 15, 2018
  • Latest release: May 15, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: coolcourd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 334 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼137.14ms] Passed 4 tests

A check of server-side resources used by The Taste of Ink
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1238.03 ▲14.10
Dashboard /wp-admin3.07 ▲0.0146.46 ▲0.69
Posts /wp-admin/edit.php3.12 ▲0.0147.38 ▲1.61
Add New Post /wp-admin/post-new.php5.43 ▼0.0099.10 ▼540.92
Media Library /wp-admin/upload.php3.01 ▼0.0033.42 ▼9.95

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

The Taste of Ink: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲9015.83 ▲0.318.47 ▼1.5751.02 ▼2.88
Dashboard /wp-admin2,973 ▲425.87 ▼0.06138.68 ▼20.36117.37 ▼2.47
Posts /wp-admin/edit.php2,745 ▲62.68 ▲0.0079.52 ▲1.6393.94 ▲8.44
Add New Post /wp-admin/post-new.php1,688 ▲518.72 ▼0.06388.14 ▲3.44122.67 ▲11.27
Media Library /wp-admin/upload.php1,816 ▲95.05 ▲0.02153.08 ▲0.82122.37 ▼7.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-taste-of-ink/tasteofink.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

the-taste-of-ink/tasteofink.php 85% from 13 tests

The main PHP script in "The Taste of Ink" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("the-taste-of-ink.php" instead of "tasteofink.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182255

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin