Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/mediapost/includes/client/oauth/OAuth.php+103
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.55ms] Passed 4 tests
Server-side resources used by @MediaPost - Formulário de cadastro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.76 ▼3.62 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.46 ▲0.30 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.05 ▼8.34 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.40 ▼10.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.17 ▲4.17 |
Configurações /wp-admin/admin.php?page=mpwp_settings | 3.28 | 33.75 |
Formulários /wp-admin/admin.php?page=mpwp_forms | 3.21 | 33.80 |
Novo formulário /wp-admin/admin.php?page=mpwp_form | 3.22 | 30.70 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
mpwp_forms_version |
widget_mpwp_forms_widget |
mpwp_forms_settings |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
@MediaPost - Formulário de cadastro: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.38 ▼1.00 | 1.68 ▼0.16 | 43.13 ▲0.77 |
Dashboard /wp-admin | 2,233 ▲45 | 4.94 ▼0.95 | 108.97 ▼5.89 | 75.91 ▲33.51 |
Posts /wp-admin/edit.php | 2,128 ▲42 | 2.09 ▲0.08 | 42.00 ▲2.13 | 34.62 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,547 ▲5 | 23.22 ▲4.69 | 801.99 ▲106.68 | 41.62 ▼10.49 |
Media Library /wp-admin/upload.php | 1,424 ▲39 | 4.25 ▼0.00 | 115.53 ▲11.95 | 78.89 ▲24.62 |
Configurações /wp-admin/admin.php?page=mpwp_settings | 977 | 1.76 | 30.09 | 46.54 |
Formulários /wp-admin/admin.php?page=mpwp_forms | 806 | 1.75 | 30.81 | 29.73 |
Novo formulário /wp-admin/admin.php?page=mpwp_form | 809 | 1.79 | 30.83 | 26.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_mpwp_forms_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== mediapost ===
)
mediapost/mediapost.php 92% from 13 tests
"@MediaPost - Formulário de cadastro" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,056 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 344 | 527 | 2,197 |
JavaScript | 2 | 18 | 35 | 553 |
CSS | 2 | 0 | 0 | 232 |
HTML | 3 | 0 | 0 | 74 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 11 | 13.92% |
▷ Public methods | 67 | 84.81% |
▷ Protected methods | 2 | 2.53% |
▷ Private methods | 10 | 12.66% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.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
27 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/views/models/form2.png | 5.30KB | 5.44KB | 0.00% |
assets/images/colorpicker_submit_new.png | 49.22KB | 0.43KB | ▼ 99.12% |
assets/images/custom_background.png | 1.87KB | 2.12KB | 0.00% |
assets/images/custom_rgb_b.png | 0.98KB | 0.74KB | ▼ 25.00% |
includes/admin/views/models/form1.png | 5.02KB | 5.21KB | 0.00% |