74% custmain

Code Review | CustMain

WordPress plugin CustMain scored74%from 54 tests.

About plugin

  • Plugin page: custmain
  • Plugin version: 0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2018
  • Latest release: Sep 21, 2020
  • Number of updates: 3
  • Update frequency: every 232.0 days
  • Top authors: inyh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /828 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼3.35ms] Passed 4 tests

Analyzing server-side resources used by CustMain
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2837.62 ▼4.63
Dashboard /wp-admin3.60 ▲0.2948.80 ▲2.07
Posts /wp-admin/edit.php3.71 ▲0.3547.65 ▲2.05
Add New Post /wp-admin/post-new.php6.18 ▲0.2982.90 ▼12.89
Media Library /wp-admin/upload.php3.52 ▲0.2939.15 ▲6.25
CustMain /wp-admin/tools.php?page=custmain3.5733.97

Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/custmain/" and "wp-content/uploads/"
    • (new file) cm-backup/.empty
Filesystem: 24 new files
Database: 5 new tables, 6 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for CustMain
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.22 ▼1.041.65 ▼0.2049.63 ▼0.62
Dashboard /wp-admin2,211 ▲235.86 ▲1.00101.35 ▼9.6663.43 ▲19.25
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0333.61 ▼7.0351.75 ▲14.54
Add New Post /wp-admin/post-new.php1,521 ▼2123.03 ▲4.76646.26 ▲36.1379.48 ▲21.30
Media Library /wp-admin/upload.php1,399 ▲114.17 ▼0.0598.93 ▼5.6163.36 ▲16.12
CustMain /wp-admin/tools.php?page=custmain1,2142.0524.5352.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall successfully, leaving 5 tables in the database
    • wp_custmain_autorun
    • wp_custmain_changes
    • wp_custmain_groups
    • wp_custmain_files
    • wp_custmain_logs
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=custmain
    • > Notice in wp-content/plugins/custmain/custmain.php+341
    Trying to access array offset on value of type null

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: customize, change, maintain, maintenance, replace...

custmain/custmain.php Passed 13 tests

Analyzing the main PHP file in "CustMain" version 0.4
79 characters long description:
Easily maintain customizations of installed themes, plugins and WordPress core.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,654 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File3305395671

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity50.00
▷ Minimum class complexity1.00
▷ Maximum class complexity138.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3792.50%
▷ Protected methods00.00%
▷ Private methods37.50%
▷ Named functions18100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/custmain.png17.77KB7.51KB▼ 57.71%