84% custom-code-manager

Code Review | Custom Code Manager

WordPress plugin Custom Code Manager scored 84% from 54 tests.

About plugin

  • Plugin page: custom-code-manager
  • Plugin version: 1.18
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 5.8.1
  • First release: Jul 5, 2019
  • Latest release: Sep 6, 2021
  • Number of updates: 28
  • Update frequency: every 28.4 days
  • Top authors: Arthur Gareginyan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 1,691 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.34MB] [CPU: ▼134.44ms] Passed 4 tests

This is a short check of server-side resources used by Custom Code Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.13 ▲0.4145.13 ▲21.19
Dashboard /wp-admin3.44 ▲0.3852.74 ▲11.73
Posts /wp-admin/edit.php3.48 ▲0.3851.81 ▲6.50
Add New Post /wp-admin/post-new.php5.74 ▲0.30105.69 ▼552.92
Media Library /wp-admin/upload.php3.32 ▲0.3136.27 ▼3.07
CSS code /wp-admin/admin.php?page=code/css3.4232.21
JS code /wp-admin/admin.php?page=code/js3.4235.04
HTML code /wp-admin/admin.php?page=code/html3.4235.32
PHP code /wp-admin/admin.php?page=code/php3.5339.92

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 203 new files
Database: no new tables, 5 new options
New WordPress options
spacexchimp_p020_service_info
spacexchimp_p006_service_info
spacexchimp_p003_service_info
spacexchimp_p001_service_info
spacexchimp_p016_service_info

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Code Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,742 ▲13615.83 ▲0.218.21 ▼0.5046.54 ▼0.44
Dashboard /wp-admin3,009 ▲755.99 ▼0.10143.20 ▼20.31112.68 ▼7.40
Posts /wp-admin/edit.php2,778 ▲422.70 ▲0.0067.00 ▼0.8192.21 ▲2.59
Add New Post /wp-admin/post-new.php1,708 ▲3618.77 ▼0.05374.55 ▲4.51106.42 ▼5.20
Media Library /wp-admin/upload.php1,849 ▲425.00 ▼0.00153.34 ▼4.34124.76 ▼14.80
CSS code /wp-admin/admin.php?page=code/css2,8053.0882.2683.99
JS code /wp-admin/admin.php?page=code/js3,3963.2990.7183.15
HTML code /wp-admin/admin.php?page=code/html3,4253.4896.35103.62
PHP code /wp-admin/admin.php?page=code/php3,5354.0394.53110.36

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 5 options
    • spacexchimp_p016_service_info
    • spacexchimp_p001_service_info
    • spacexchimp_p006_service_info
    • spacexchimp_p003_service_info
    • spacexchimp_p020_service_info

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 58× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/custom-code-manager/sub/css/inc/php/tabs/usage.php
    • > /wp-content/plugins/custom-code-manager/sub/php/inc/php/functional.php
    • > /wp-content/plugins/custom-code-manager/sub/css/inc/php/tabs/settings.php
    • > /wp-content/plugins/custom-code-manager/inc/php/sidebar.php
    • > /wp-content/plugins/custom-code-manager/sub/php/inc/php/tabs/settings.php
    • > /wp-content/plugins/custom-code-manager/sub/html/inc/php/tabs/settings.php
    • > /wp-content/plugins/custom-code-manager/sub/js/inc/php/core.php
    • > /wp-content/plugins/custom-code-manager/sub/js/inc/php/enqueue.php
    • > /wp-content/plugins/custom-code-manager/sub/php/inc/php/messages.php
    • > /wp-content/plugins/custom-code-manager/sub/html/inc/php/versioning.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 59 tag instead of maximum 10
The official readme.txt is a good inspiration

custom-code-manager/custom-code-manager.php 92% from 13 tests

The main PHP script in "Custom Code Manager" version 1.18 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 176 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected32,996 lines of code in 144 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript291,4941,35412,526
PO File303,8374,1948,048
PHP588701,1443,869
SVG2102,677
CSS81622822,524
HTML1327712,007
Markdown386501,298
JSON10047

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions100
▷ Named functions100100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 compressed PNG files occupy 0.04MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/thanks.png9.03KB9.47KB0.00%
inc/img/spacexchimp-logo.png21.01KB14.98KB▼ 28.69%
inc/img/upgrade.png9.02KB9.71KB0.00%