84% kittify

Code Review | Kittify

WordPress plugin Kittify scored 84% from 54 tests.

About plugin

  • Plugin page: kittify
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Dec 17, 2013
  • Latest release: Dec 20, 2013
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: TimPietrusky (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active / 980 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Kittify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.61 ▲8.43
Dashboard /wp-admin3.31 ▲0.0044.09 ▼6.38
Posts /wp-admin/edit.php3.36 ▲0.0043.53 ▼2.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.88 ▲1.91
Media Library /wp-admin/upload.php3.23 ▲0.0032.98 ▼1.18

Server storage [IO: ▲0.19MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Kittify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.66 ▼0.732.22 ▲0.3942.46 ▼2.80
Dashboard /wp-admin2,206 ▲185.84 ▲0.96103.88 ▼3.4738.64 ▼2.67
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0536.30 ▼3.1833.21 ▼2.86
Add New Post /wp-admin/post-new.php1,528 ▼623.31 ▲0.17598.81 ▼9.0850.86 ▼1.34
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0196.84 ▲0.8142.35 ▲1.05

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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)
Good news, no errors were detected

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 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/kittify/kittify.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: cat, placekitten, kitten, kitteh, kitty

kittify/kittify.php Passed 13 tests

The entry point to "Kittify" version 1.0 is a PHP file that has certain tags in its header comment area
103 characters long description:
You really love your cat? Show it with Kittify and replace every image with a picture of a sweet kitty.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected42 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript172322
Markdown19011
PHP12139

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png169.81KB81.64KB▼ 51.92%