Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.10ms] Passed 4 tests
This is a short check of server-side resources used by Gerador de Certificados - DevApps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 38.14 ▼5.46 |
Dashboard /wp-admin | 3.46 ▲0.11 | 53.49 ▼12.64 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 51.42 ▲0.06 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 94.75 ▼2.37 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.97 ▲0.19 |
Gerar Certificados /wp-admin/admin.php?page=devapps-certificate-generator | 3.36 | 33.80 |
Configurações /wp-admin/admin.php?page=devapps-certificate-generator-settings | 3.37 | 34.23 |
Certificados Gerados /wp-admin/admin.php?page=devapps-certificate-generator-list | 3.35 | 36.94 |
Server storage [IO: ▲5.53MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 477 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_devapps_certificates |
wp_devapps_certificate_models |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gerador de Certificados - DevApps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲181 | 13.39 ▼0.88 | 7.76 ▲6.08 | 35.58 ▼8.73 |
Dashboard /wp-admin | 2,222 ▲52 | 5.62 ▲0.01 | 89.68 ▼18.84 | 39.45 ▼4.16 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.95 ▼0.05 | 38.61 ▼0.68 | 35.97 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.43 ▲0.23 | 586.45 ▼22.38 | 62.98 ▲9.77 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.18 ▼0.03 | 96.00 ▲1.48 | 41.97 ▼3.07 |
Gerar Certificados /wp-admin/admin.php?page=devapps-certificate-generator | 1,360 | 1.88 | 31.47 | 99.20 |
Configurações /wp-admin/admin.php?page=devapps-certificate-generator-settings | 954 | 1.80 | 28.08 | 36.02 |
Certificados Gerados /wp-admin/admin.php?page=devapps-certificate-generator-list | 879 | 1.77 | 27.28 | 35.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_devapps_certificate_models
- wp_devapps_certificates
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/gerador-de-certificados-devapps/admin/views/list.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gerador-de-certificados-devapps/admin/views/tabs/models.php:30
- > PHP Warning
Use of undefined constant DEVAPPS_CERTIFICATE_GENERATOR_URL - assumed 'DEVAPPS_CERTIFICATE_GENERATOR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gerador-de-certificados-devapps/admin/views/settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gerador-de-certificados-devapps/admin/views/tabs/course.php:37
- > PHP Warning
Use of undefined constant DEVAPPS_CERTIFICATE_GENERATOR_URL - assumed 'DEVAPPS_CERTIFICATE_GENERATOR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gerador-de-certificados-devapps/admin/views/tabs/models.php on line 24
- > PHP Warning
Use of undefined constant DEVAPPS_CERTIFICATE_GENERATOR_URL - assumed 'DEVAPPS_CERTIFICATE_GENERATOR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gerador-de-certificados-devapps/admin/views/list.php on line 4
- > PHP Warning
Use of undefined constant DEVAPPS_CERTIFICATE_GENERATOR_URL - assumed 'DEVAPPS_CERTIFICATE_GENERATOR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gerador-de-certificados-devapps/admin/views/tabs/person.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gerador-de-certificados-devapps/admin/views/main.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gerador-de-certificados-devapps/admin/views/tabs/generate.php:40
- > PHP Warning
Use of undefined constant DEVAPPS_CERTIFICATE_GENERATOR_URL - assumed 'DEVAPPS_CERTIFICATE_GENERATOR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gerador-de-certificados-devapps/admin/views/main.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gerador-de-certificados-devapps/admin/views/tabs/person.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
10 plugin tags: palestrante, certifica, certificao, palestra, certificado para cursos...
gerador-de-certificados-devapps/devapps-certificate-generator.php 92% from 13 tests
Analyzing the main PHP file in "Gerador de Certificados - DevApps" version 1.3.5
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("gerador-de-certificados-devapps.php" instead of "devapps-certificate-generator.php")
Code Analysis 5% from 3 tests
File types 0% from 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
These items require your attention
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/gerador-de-certificados-devapps/vendors/qrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 1,880 | 2,911 | 7,621 |
JavaScript | 3 | 61 | 8 | 343 |
CSS | 3 | 38 | 6 | 241 |
PO File | 1 | 15 | 20 | 40 |
XML | 2 | 0 | 0 | 27 |
JSON | 1 | 0 | 0 | 3 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
INI | 1 | 0 | 0 | 2 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 27.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 42 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 435 | |
▷ Static methods | 140 | 32.18% |
▷ Public methods | 313 | 71.95% |
▷ Protected methods | 96 | 22.07% |
▷ Private methods | 26 | 5.98% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 104 | |
▷ Global constants | 104 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
42 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/qrcode/cache/frame_10.png | 0.20KB | 0.20KB | ▼ 0.99% |
vendors/qrcode/cache/frame_35.png | 0.24KB | 0.21KB | ▼ 9.47% |
vendors/qrcode/cache/frame_11.png | 0.20KB | 0.19KB | ▼ 6.83% |
vendors/qrcode/cache/frame_21.png | 0.23KB | 0.22KB | ▼ 3.83% |
vendors/qrcode/cache/frame_1.png | 0.12KB | 0.12KB | ▼ 1.59% |