78% likecheese

Code Review | Like Cheese

WordPress plugin Like Cheese scored78%from 54 tests.

About plugin

  • Plugin page: likecheese
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jun 11, 2015
  • Latest release: Dec 4, 2016
  • Number of updates: 28
  • Update frequency: every 30.8 days
  • Top authors: sageshilling (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,558 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.09ms] Passed 4 tests

This is a short check of server-side resources used by Like Cheese
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.34 ▼5.34
Dashboard /wp-admin3.36 ▲0.0649.19 ▼0.89
Posts /wp-admin/edit.php3.41 ▲0.0549.83 ▼0.99
Add New Post /wp-admin/post-new.php5.94 ▲0.0597.63 ▼9.14
Media Library /wp-admin/upload.php3.28 ▲0.0538.30 ▲4.04

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Like Cheese
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲14013.68 ▼0.605.80 ▲3.9738.94 ▼0.31
Dashboard /wp-admin2,200 ▲215.87 ▼0.00104.06 ▲2.1741.54 ▼7.45
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0040.03 ▲3.9835.71 ▼11.41
Add New Post /wp-admin/post-new.php1,544 ▼118.05 ▼0.10604.22 ▼103.5353.70 ▼22.02
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0599.77 ▼10.0052.02 ▲4.98

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/likecheese/uninstall.php
  • 1× 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/likecheese/like-cheese.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: likes, instagram, images, fun

likecheese/like-cheese.php 92% from 13 tests

The primary PHP file in "Like Cheese" version 2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("likecheese.php" instead of "like-cheese.php")

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 detected300 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23496247
JavaScript1111336
CSS115417

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin