Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.42ms] Passed 4 tests
A check of server-side resources used by Pactic.ro integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 36.79 ▼3.51 |
Dashboard /wp-admin | 3.51 ▲0.21 | 47.23 ▼3.75 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 48.17 ▲2.95 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 89.70 ▼6.08 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 35.77 ▼0.34 |
Server storage [IO: ▲2.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Pactic.ro integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲162 | 13.84 ▼0.75 | 5.53 ▲3.78 | 40.18 ▼8.07 |
Dashboard /wp-admin | 2,217 ▲29 | 4.88 ▲0.02 | 104.37 ▼8.07 | 38.98 ▼8.51 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.04 ▼0.09 | 34.98 ▼3.61 | 33.34 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 18.19 ▼5.00 | 636.55 ▼48.39 | 58.40 ▲9.19 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.30 ▲0.11 | 101.14 ▼8.25 | 40.93 ▼5.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/allpacka-com-integration/includes/FPDI/fpdi_bridge.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/allpacka-com-integration/allpacka-integration.php:23
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/allpacka-com-integration/includes/tcpdf/tcpdf.php on line 17784
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/allpacka-com-integration/includes/FPDI/fpdi_bridge.php:23
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/allpacka-com-integration/includes/FPDI/fpdi_bridge.php:23
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/allpacka-com-integration/includes/tcpdf/tcpdf.php on line 17784
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/allpacka-com-integration/includes/allpacka.php:3
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
allpacka-com-integration/allpacka-integration.php 85% from 13 tests
This is the main PHP file of "Pactic.ro integration" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("allpacka-com-integration.php" instead of "allpacka-integration.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected49,772 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 2,495 | 12,569 | 48,639 |
CSS | 2 | 121 | 20 | 412 |
JavaScript | 2 | 351 | 58 | 401 |
PO File | 1 | 167 | 218 | 320 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 4,353)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 272.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,353.00 |
Average method complexity | 9.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 775 | |
▷ Static methods | 110 | 14.19% |
▷ Public methods | 472 | 60.90% |
▷ Protected methods | 301 | 38.84% |
▷ Private methods | 2 | 0.26% |
Functions | 33 | |
▷ Named functions | 33 | 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
PNG files should be compressed to save space and minimize bandwidth usage
12 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fuvarlevel_ikon.png | 0.65KB | 0.64KB | ▼ 1.20% |
images/markercluster3.png | 3.86KB | 3.06KB | ▼ 20.80% |
images/megrendeles_ikon.png | 0.69KB | 0.89KB | 0.00% |
images/markercluster1.png | 2.93KB | 2.20KB | ▼ 25.07% |
images/markercluster5.png | 6.68KB | 5.10KB | ▼ 23.66% |