94% wc-shop-title

Code Review | WC Shop Title

WordPress plugin WC Shop Title scored 94% from 54 tests.

About plugin

  • Plugin page: wc-shop-title
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.1.1
  • WordPress version: 5.8.1
  • First release: May 30, 2019
  • Latest release: May 30, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: 3sonsdevelopment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 276 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.01MB] [CPU: ▼140.71ms] Passed 4 tests

This is a short check of server-side resources used by WC Shop Title
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.67 ▼0.0529.62 ▲8.24
Dashboard /wp-admin3.06 ▲0.0144.47 ▲0.45
Posts /wp-admin/edit.php3.11 ▲0.0143.44 ▲3.37
Add New Post /wp-admin/post-new.php5.42 ▼0.0186.73 ▼566.60
Media Library /wp-admin/upload.php3.01 ▲0.0033.99 ▼0.06

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WC Shop Title
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,251 ▼34515.62 ▲0.070.46 ▼9.7914.26 ▼38.17
Dashboard /wp-admin2,967 ▲366.08 ▲0.07141.77 ▲14.34112.16 ▲11.01
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0164.98 ▼0.5099.80 ▲5.45
Add New Post /wp-admin/post-new.php1,500 ▼9118.54 ▼0.23354.80 ▼26.98107.06 ▼4.61
Media Library /wp-admin/upload.php1,804 ▼35.12 ▲0.10153.13 ▲7.40118.78 ▼0.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-shop-title/wc-shop-title.php:24

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wc-shop-title === )
You can take inspiration from this readme.txt

wc-shop-title/wc-shop-title.php 92% from 13 tests

The main file in "WC Shop Title" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15118

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin