Benchmarks
Plugin footprint 83% 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.00MB] [CPU: ▼2.73ms] Passed 4 tests
A check of server-side resources used by DA Media CPT Show Custom Fields
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.26 ▼6.76 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.60 ▲1.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.98 ▲2.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.26 ▼7.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.90 ▲2.77 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for DA Media CPT Show Custom Fields
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.49 ▼0.10 | 2.08 ▲0.32 | 39.85 ▼4.97 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼1.09 | 107.61 ▼6.85 | 40.42 ▼6.52 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 1.99 ▼0.13 | 40.38 ▲1.33 | 34.67 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.31 ▲0.02 | 659.15 ▼10.26 | 58.02 ▼5.85 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.26 ▲0.07 | 97.77 ▼1.46 | 43.87 ▲1.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: metadata, hide, custom post type, cpt, custom fields...
damedia-cpt-show-custom-fields/damedia-cpt-show-custom-fields.php Passed 13 tests
This is the main PHP file of "DA Media CPT Show Custom Fields" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
133 characters long description:
Lightweight plugin to hide or show Custom Fields on on the edit page of all public Custom Post Types on your Wordpress installation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,697 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 294 | 294 | 1,412 |
PHP | 3 | 64 | 26 | 232 |
CSS | 1 | 11 | 1 | 53 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/DAMLLogo.png | 11.57KB | 6.28KB | ▼ 45.75% |