100% add-custom-codes

Code Review | Add Custom Codes by Mak

WordPress plugin Add Custom Codes by Mak scored 100% from 54 tests.

About plugin

  • Plugin page: add-custom-codes
  • Plugin version: 4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Mar 11, 2017
  • Latest release: Jan 31, 2022
  • Number of updates: 38
  • Update frequency: every 46.9 days
  • Top authors: SaifuMak (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 2,970 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼318.03ms] Passed 4 tests

An overview of server-side resources used by Add Custom Codes by Mak
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▼0.0150.96 ▼1.33
Dashboard /wp-admin3.47 ▲0.0635.04 ▲2.18
Posts /wp-admin/edit.php3.69 ▲0.0537.19 ▼6.09
Add New Post /wp-admin/post-new.php3.27 ▼3.7029.08 ▼1,263.43
Media Library /wp-admin/upload.php3.34 ▲0.0423.60 ▼1.27
Add Custom Codes /wp-admin/themes.php?page=add-custom-codes3.3223.24

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Custom Codes by Mak
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲7517.68 ▲1.625.91 ▼0.133.15 ▲1.07
Dashboard /wp-admin2,888 ▲277.48 ▲1.28135.62 ▲3.49152.15 ▼8.19
Posts /wp-admin/edit.php2,672 ▼194.74 ▲1.5076.97 ▲13.37136.14 ▼8.30
Add New Post /wp-admin/post-new.php1,961 ▲20121.71 ▼0.96394.43 ▼33.50222.13 ▲63.99
Media Library /wp-admin/upload.php1,684 ▼146.11 ▲0.58136.85 ▲1.17189.01 ▲2.54
Add Custom Codes /wp-admin/themes.php?page=add-custom-codes1,4194.2581.62149.95

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
Uninstaller ran successfully

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: custom css, header codes, javascript, custom codes, footer codes...

add-custom-codes/add-custom-codes.php 92% from 13 tests

This is the main PHP file of "Add Custom Codes by Mak" version 4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 221 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
No dangerous file extensions were detected484 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions16100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG files were detected