84% pinkify-it

Code Review | Pinkify It!

WordPress plugin Pinkify It! scored84%from 54 tests.

About plugin

  • Plugin page: pinkify-it
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.3
  • WordPress version: 6.3.1
  • First release: Sep 29, 2014
  • Latest release: Aug 11, 2016
  • Number of updates: 16
  • Update frequency: every 42.7 days
  • Top authors: suzettefranck (100%)

Code review

54 tests

User reviews

39 reviews

Install metrics

10+ active /1,317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by Pinkify It!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0043.85 ▲1.33
Dashboard /wp-admin3.57 ▲0.0150.72 ▼1.98
Posts /wp-admin/edit.php3.68 ▲0.0055.09 ▲1.31
Add New Post /wp-admin/post-new.php6.15 ▲0.0099.48 ▼42.96
Media Library /wp-admin/upload.php3.49 ▲0.0040.46 ▼2.41

Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Pinkify It!
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.71 ▲0.681.84 ▼0.0337.61 ▼12.00
Dashboard /wp-admin2,194 ▲205.64 ▲0.0495.04 ▲2.8139.93 ▲1.18
Posts /wp-admin/edit.php2,105 ▲52.04 ▲0.0041.49 ▼2.4634.66 ▼3.06
Add New Post /wp-admin/post-new.php1,528 ▼1721.02 ▼2.31679.42 ▲5.9078.44 ▲9.65
Media Library /wp-admin/upload.php1,402 ▲84.19 ▼0.10105.47 ▼39.1448.45 ▼35.73

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pinkify-it/pinkify.php:29

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 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 ((screenshot-1.png) Logged in appearance of default WordPress theme, Twenty Fourteen, with "Pinkify!" plugin activated.), #2 ((screenshot-2.png) Logged in appearance of default WordPress theme, Twenty Fourteen, with "Pinkify!" plugin *NOT ACTIVATED*.), #3 ((screenshot-3.png) Logged out appearance of default WordPress theme, Twenty Fourteen, with "Pinkify!" plugin activated.)
The official readme.txt might help

pinkify-it/pinkify.php 92% from 13 tests

The main PHP file in "Pinkify It!" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pinkify-it.php" instead of "pinkify.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected233 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS29421212
Markdown13011
PHP192110

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png72.02KB24.96KB▼ 65.33%
screenshot-1.png90.83KB29.95KB▼ 67.03%
screenshot-2.png100.83KB31.05KB▼ 69.21%