93% my-custom-theme-values

Code Review | My Custom Theme Values

WordPress plugin My Custom Theme Values scored 93% from 54 tests.

About plugin

  • Plugin page: my-custom-theme-v...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Aug 28, 2014
  • Latest release: Feb 20, 2015
  • Number of updates: 5
  • Update frequency: every 35.4 days
  • Top authors: junaid15 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,248 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼312.43ms] Passed 4 tests

A check of server-side resources used by My Custom Theme Values
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0253.49 ▼1.26
Dashboard /wp-admin3.43 ▲0.0232.49 ▲0.57
Posts /wp-admin/edit.php3.66 ▲0.0235.55 ▼3.15
Add New Post /wp-admin/post-new.php6.92 ▼0.0790.76 ▼1,245.88
Media Library /wp-admin/upload.php3.31 ▲0.0226.63 ▲3.74

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by My Custom Theme Values
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲6115.79 ▲0.085.84 ▲0.131.97 ▼0.49
Dashboard /wp-admin2,911 ▲506.09 ▼0.07116.80 ▼11.68178.26 ▲20.71
Posts /wp-admin/edit.php2,705 ▲113.13 ▼0.1162.61 ▼0.36141.74 ▼3.46
Add New Post /wp-admin/post-new.php1,804 ▲14322.26 ▲6.17431.97 ▲30.29192.25 ▲42.11
Media Library /wp-admin/upload.php1,718 ▲175.50 ▲0.05124.73 ▼15.65206.13 ▲22.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% 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 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-custom-theme-values/custom-theme-values.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (61 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin settings page.), #2 (Post Shortcode and TinyMCE Button for Shortcode.)
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

my-custom-theme-values/custom-theme-values.php 85% from 13 tests

"My Custom Theme Values" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-custom-theme-values.php" instead of "custom-theme-values.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
Success! There were no dangerous files found in this plugin114 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1211592
JavaScript131222

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png10.53KB4.93KB▼ 53.17%
images/icon.png1.43KB0.62KB▼ 56.61%
screenshot-1.png23.62KB10.25KB▼ 56.62%