Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼149.80ms] Passed 4 tests
Analyzing server-side resources used by Campo RUT para CF7
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 33.74 ▲11.12 |
Dashboard /wp-admin | 3.10 ▲0.03 | 36.70 ▼8.49 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 41.01 ▲7.29 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 75.19 ▼588.51 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 23.38 ▼9.50 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Campo RUT para CF7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,720 ▲119 | 15.83 ▲0.26 | 5.53 ▲0.44 | 83.19 ▲9.69 |
Dashboard /wp-admin | 2,930 ▲38 | 6.11 ▼0.09 | 113.16 ▼16.06 | 178.12 ▲5.14 |
Posts /wp-admin/edit.php | 2,740 ▲16 | 3.36 ▼0.01 | 63.79 ▼0.45 | 134.01 ▼5.40 |
Add New Post /wp-admin/post-new.php | 3,699 ▲1 | 17.99 ▼0.17 | 461.04 ▼20.47 | 156.55 ▼17.80 |
Media Library /wp-admin/upload.php | 1,749 ▼0 | 5.51 ▲0.03 | 138.39 ▼34.17 | 181.38 ▼41.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/add-campo-rut-cf7/rut-field-cf7.php
- > /wp-content/plugins/add-campo-rut-cf7/cf7rut.php
- > /wp-content/plugins/add-campo-rut-cf7/init.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: run, wordpress, rut, chile, chileno...
add-campo-rut-cf7/rut-field-cf7.php 92% from 13 tests
The principal PHP file in "Campo RUT para CF7" v. 1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("add-campo-rut-cf7.php" instead of "rut-field-cf7.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin273 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 64 | 40 | 203 |
JavaScript | 1 | 12 | 28 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 8 | |
▷ Static methods | 7 | 87.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin