93% cuttr-me

Code Review | Cuttr.me

WordPress plugin Cuttr.me scored 93% from 54 tests.

About plugin

  • Plugin page: cuttr-me
  • Plugin version: 0.17
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5.3
  • WordPress version: 5.8.1
  • First release: May 29, 2020
  • Latest release: Nov 2, 2020
  • Number of updates: 8
  • Update frequency: every 20.8 days
  • Top authors: cuttrme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 206 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼146.53ms] Passed 4 tests

Analyzing server-side resources used by Cuttr.me
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0434.58 ▼3.36
Dashboard /wp-admin3.10 ▲0.0548.12 ▲10.52
Posts /wp-admin/edit.php3.19 ▲0.0847.44 ▼11.41
Add New Post /wp-admin/post-new.php5.46 ▲0.0388.07 ▼571.48
Media Library /wp-admin/upload.php3.04 ▲0.0435.60 ▲0.14

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Cuttr.me
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12716.35 ▲0.619.07 ▼1.9947.76 ▼1.79
Dashboard /wp-admin2,987 ▲535.85 ▼0.25144.17 ▼38.95110.87 ▲4.53
Posts /wp-admin/edit.php2,772 ▲332.72 ▲0.0266.00 ▼11.1989.59 ▲0.44
Add New Post /wp-admin/post-new.php1,885 ▲30419.25 ▼1.20398.50 ▲2.50107.22 ▲1.43
Media Library /wp-admin/upload.php1,827 ▲205.03 ▼0.02169.58 ▼9.37118.85 ▼2.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/cuttr-me/views/index.php
    • > /wp-content/plugins/cuttr-me/libs/CuttrUtils.php
    • > /wp-content/plugins/cuttr-me/cuttr.php
    • > /wp-content/plugins/cuttr-me/libs/Cuttr.php
    • > /wp-content/plugins/cuttr-me/libs/CuttrSettings.php

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
Please take inspiration from this readme.txt

cuttr-me/cuttr.php 85% from 13 tests

The primary PHP file in "Cuttr.me" version 0.17 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Make the plugin description longer than 10 characters (currently 8 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cuttr-me.php" instead of "cuttr.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 detected260 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5588259
Markdown1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity11.33
▷ Minimum class complexity2.00
▷ Maximum class complexity30.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods23100.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
No PNG files were detected