Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.52MB] [CPU: ▼15.74ms] Passed 4 tests
An overview of server-side resources used by Pactic.hu integráció
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.91 ▲1.71 |
Dashboard /wp-admin | 3.46 ▲0.16 | 54.62 ▲4.94 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.59 ▼6.48 |
Add New Post /wp-admin/post-new.php | 3.31 ▼2.58 | 37.48 ▼61.41 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.86 ▲3.24 |
Server storage [IO: ▲2.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Pactic.hu integráció
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 14.39 ▼0.21 | 31.48 ▲29.71 | 43.05 ▲4.02 |
Dashboard /wp-admin | 2,206 ▲29 | 5.54 ▲0.01 | 85.88 ▼16.71 | 43.89 ▼10.55 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.02 ▲0.00 | 37.71 ▲0.64 | 34.06 ▲1.71 |
Add New Post /wp-admin/post-new.php | 45 ▼1,490 | 0.42 ▼17.57 | 0.08 ▼633.24 | 12.37 ▼52.67 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.26 ▲0.05 | 104.71 ▲2.03 | 66.10 ▲23.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please fix the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/furgefutar-hu-integracio/includes/FPDI/fpdi_bridge.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/furgefutar-hu-integracio/furgefutar-integracio.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/furgefutar-hu-integracio/includes/csomagpont.php:3
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/furgefutar-hu-integracio/includes/tcpdf/tcpdf.php on line 17784
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/furgefutar-hu-integracio/includes/furgefutar.php:3
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/furgefutar-hu-integracio/includes/FPDI/fpdi_bridge.php:23
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/furgefutar-hu-integracio/includes/FPDI/fpdi_bridge.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
furgefutar-hu-integracio/furgefutar-integracio.php 85% from 13 tests
"Pactic.hu integráció" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("furgefutar-hu-integracio.php" instead of "furgefutar-integracio.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin50,225 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 2,756 | 12,592 | 49,023 |
CSS | 2 | 132 | 20 | 417 |
JavaScript | 2 | 355 | 54 | 404 |
PO File | 1 | 170 | 197 | 381 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 4,353)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 262.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,353.00 |
Average method complexity | 9.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 780 | |
▷ Static methods | 110 | 14.10% |
▷ Public methods | 477 | 61.15% |
▷ Protected methods | 301 | 38.59% |
▷ Private methods | 2 | 0.26% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 122 | |
▷ Global constants | 108 | 88.52% |
▷ Class constants | 14 | 11.48% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/markercluster2.png | 3.18KB | 2.36KB | ▼ 25.77% |
images/markercluster3.png | 3.86KB | 3.06KB | ▼ 20.80% |
images/nyomkovetes_ikon.png | 0.72KB | 0.77KB | 0.00% |
images/pactic_ikon_2.png | 6.27KB | 3.12KB | ▼ 50.18% |
images/markercluster4.png | 5.57KB | 4.23KB | ▼ 24.08% |