Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.14MB] [CPU: ▼9.41ms] Passed 4 tests
Server-side resources used by Custom Field Template
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.61 ▼2.24 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.56 ▼0.11 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 54.03 ▲3.33 |
Add New Post /wp-admin/post-new.php | 5.19 ▼0.70 | 68.93 ▼33.36 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.33 ▼1.94 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 116 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Field Template
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.63 ▼0.64 | 1.72 ▼0.06 | 44.18 ▼0.51 |
Dashboard /wp-admin | 2,238 ▲47 | 5.86 ▲0.98 | 105.74 ▲0.15 | 40.13 ▼3.33 |
Posts /wp-admin/edit.php | 2,166 ▲77 | 2.14 ▲0.10 | 41.08 ▲3.29 | 34.48 ▲0.68 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,708 | 26.22 ▲2.94 | 905.29 ▲229.43 | 61.92 ▲2.49 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.30 ▲0.09 | 101.37 ▼0.46 | 42.99 ▼2.12 |
Custom Field Template /wp-admin/custom-field-template.php | 26 | 0.44 | 0.07 | 12.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-field-template/custom-field-template.php:40
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/custom-field-template.php
- > Network (severe)
wp-admin/custom-field-template.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
custom-field-template/custom-field-template.php 85% from 13 tests
The principal PHP file in "Custom Field Template" v. 2.6 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
- Domain Path: The domain path should be prefixed with a forward slash character ("//")
Code Analysis 95% from 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
No dangerous file extensions were detected12,591 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 69 | 557 | 1,610 | 4,457 |
PO File | 20 | 1,940 | 2,752 | 4,180 |
PHP | 1 | 470 | 130 | 3,819 |
CSS | 1 | 6 | 3 | 135 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,275)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 162)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 1,275.00 |
▷ Minimum class complexity | 1,275.00 |
▷ Maximum class complexity | 1,275.00 |
Average method complexity | 21.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 162.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 | 62 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 62 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/calendar.png | 0.47KB | 0.57KB | 0.00% |
js/grippie.png | 0.16KB | 0.10KB | ▼ 34.57% |