Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 37.62 ▼4.63 |
Dashboard /wp-admin | 3.60 ▲0.29 | 48.80 ▲2.07 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 47.65 ▲2.05 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 82.90 ▼12.89 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 39.15 ▲6.25 |
CustMain /wp-admin/tools.php?page=custmain | 3.57 | 33.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 |
---|
wp_custmain_logs |
wp_custmain_autorun |
wp_custmain_groups |
wp_custmain_changes |
wp_custmain_files |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for CustMain
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.22 ▼1.04 | 1.65 ▼0.20 | 49.63 ▼0.62 |
Dashboard /wp-admin | 2,211 ▲23 | 5.86 ▲1.00 | 101.35 ▼9.66 | 63.43 ▲19.25 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.02 ▲0.03 | 33.61 ▼7.03 | 51.75 ▲14.54 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 23.03 ▲4.76 | 646.26 ▲36.13 | 79.48 ▲21.30 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.17 ▼0.05 | 98.93 ▼5.61 | 63.36 ▲16.12 |
CustMain /wp-admin/tools.php?page=custmain | 1,214 | 2.05 | 24.53 | 52.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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 250 | 28 | 1,978 |
PO File | 3 | 305 | 395 | 671 |
INI | 1 | 0 | 0 | 4 |
CSS | 1 | 0 | 5 | 1 |
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 code | 0.34 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 92.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.50% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/custmain.png | 17.77KB | 7.51KB | ▼ 57.71% |