Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.52ms] Passed 4 tests
A check of server-side resources used by Gerar Certificado
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.89 ▼5.37 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.02 ▼18.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.84 ▲3.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.84 ▼9.34 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 36.25 ▲5.08 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Gerar Certificado
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.51 ▼0.44 | 1.72 ▼0.07 | 38.69 ▼3.47 |
Dashboard /wp-admin | 2,222 ▲31 | 4.84 ▼0.10 | 107.61 ▼0.26 | 41.29 ▼0.83 |
Posts /wp-admin/edit.php | 2,084 ▼5 | 2.02 ▲0.01 | 38.47 ▲2.19 | 35.24 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,532 ▲11 | 23.31 ▲0.06 | 600.72 ▼67.56 | 58.81 ▲3.38 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.23 ▼0.07 | 96.83 ▼17.37 | 43.21 ▼9.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gerar-certificado/includes/pgc-create.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gerar-certificado/includes/pgc-functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gerar-certificado/includes/pgc-create.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gerar-certificado/gerar-certificado.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: certifica, palestrante, certificado para eventos, certificado para cursos, palestra...
gerar-certificado/gerar-certificado.php Passed 13 tests
Analyzing the main PHP file in "Gerar Certificado" version 4.4
136 characters long description:
Gerar certificados para cursos e eventos não precisa ser complicado. Acesse https://gerarcertificado.com.br/ e crie sua conta gratuita.
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
Good job! No executable or dangerous file extensions detected2,739 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 70 | 17 | 1,057 |
CSS | 2 | 188 | 5 | 724 |
PHP | 3 | 9 | 7 | 664 |
PO File | 1 | 100 | 101 | 294 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.46MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/img-simulado-validade-paisagem.png | 39.51KB | 18.30KB | ▼ 53.67% |
includes/images/img-chamada-modelos.png | 225.10KB | 22.58KB | ▼ 89.97% |
includes/images/img-simulado-validade-paisagem-verso.png | 81.18KB | 10.76KB | ▼ 86.74% |
includes/images/img-simulado-validade-retrato.png | 41.80KB | 18.66KB | ▼ 55.37% |
includes/images/img-simulado-validade-retrato-verso.png | 80.25KB | 10.39KB | ▼ 87.05% |