Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼155.49ms] Passed 4 tests
An overview of server-side resources used by Entenda Antes - O Mundo da Construção
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 38.09 ▲15.66 |
Dashboard /wp-admin | 3.15 ▲0.09 | 44.88 ▼3.82 |
Posts /wp-admin/edit.php | 3.20 ▲0.08 | 53.16 ▼0.37 |
Add New Post /wp-admin/post-new.php | 2.93 ▼2.51 | 30.00 ▼615.89 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 32.92 ▼1.86 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Entenda Antes - O Mundo da Construção
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲66 | 15.86 ▼0.08 | 9.69 ▼0.59 | 46.50 ▼12.37 |
Dashboard /wp-admin | 2,989 ▲58 | 5.97 ▼0.03 | 137.69 ▼5.09 | 116.93 ▼4.10 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.01 | 70.31 ▲4.09 | 96.86 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,672 ▲172 | 18.93 ▲0.15 | 384.55 ▲3.66 | 115.84 ▼5.58 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▲0.00 | 148.34 ▼9.45 | 116.82 ▼9.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: api_url in wp-content/plugins/entenda-antes-o-mundo-da-construcao/test-environment.php on line 18
- > PHP Notice
Undefined variable: css_h3 in wp-content/plugins/entenda-antes-o-mundo-da-construcao/dynamic-form.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/entenda-antes-o-mundo-da-construcao/test-environment.php:25
- > PHP Notice
Undefined variable: unique_id in wp-content/plugins/entenda-antes-o-mundo-da-construcao/dynamic-form.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/entenda-antes-o-mundo-da-construcao/static-form.php:46
- > PHP Notice
Undefined variable: css_full_col in wp-content/plugins/entenda-antes-o-mundo-da-construcao/static-form.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/entenda-antes-o-mundo-da-construcao/dynamic-form.php:25
- > PHP Notice
Undefined variable: api_url in wp-content/plugins/entenda-antes-o-mundo-da-construcao/dynamic-form.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/entenda-antes-o-mundo-da-construcao/ea-integra.php:10
- > PHP Notice
Undefined variable: unique_id in wp-content/plugins/entenda-antes-o-mundo-da-construcao/test-environment.php on line 19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
1 plugin tags: entenda antes
entenda-antes-o-mundo-da-construcao/ea-integra.php 92% from 13 tests
The main PHP script in "Entenda Antes - O Mundo da Construção" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("entenda-antes-o-mundo-da-construcao.php" instead of "ea-integra.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin19,950 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,416 | 151 | 10,190 |
JavaScript | 6 | 1,695 | 1,582 | 8,235 |
PHP | 5 | 101 | 27 | 1,483 |
Markdown | 2 | 25 | 0 | 42 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/five_stars.png | 35.02KB | 11.32KB | ▼ 67.69% |
img/shield.png | 18.11KB | 4.82KB | ▼ 73.37% |