Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼7.84ms] Passed 4 tests
A check of server-side resources used by Flotiq Sync
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 42.31 ▲1.32 |
Dashboard /wp-admin | 3.56 ▲0.21 | 46.68 ▼12.61 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 45.21 ▼0.60 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 81.86 ▼16.00 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 34.15 ▼2.16 |
Flotiq Sync /wp-admin/options-general.php?page=wordpress_2_flotiq_sync_edit | 3.39 | 32.40 |
Server storage [IO: ▲2.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 291 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
flotiq_api_key |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Flotiq Sync
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.40 ▼0.13 | 1.71 ▼0.03 | 38.58 ▼2.34 |
Dashboard /wp-admin | 2,204 ▲23 | 5.58 ▼0.14 | 80.37 ▼22.77 | 38.57 ▼2.17 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.02 ▲0.01 | 38.78 ▲4.04 | 34.79 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.20 ▲0.12 | 580.28 ▼71.50 | 55.59 ▲1.22 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.22 ▲0.10 | 98.19 ▼14.43 | 45.83 ▼3.15 |
Flotiq Sync /wp-admin/options-general.php?page=wordpress_2_flotiq_sync_edit | 907 | 2.13 | 24.89 | 32.38 |
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 did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- flotiq_api_key
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 116× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/flotiq-sync/src/admin/wordpress-2-flotiq-sync-admin.php:8
- > PHP Fatal error
Uncaught Error: Interface 'OpenAPI\\Client\\Model\\ModelInterface' not found in wp-content/plugins/flotiq-sync/php-sdk/lib/Model/WpPageList.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/flotiq-sync/php-sdk/vendor/guzzlehttp/psr7/src/PumpStream.php:19
- > PHP Fatal error
Uncaught Error: Interface 'OpenAPI\\Client\\Model\\ModelInterface' not found in wp-content/plugins/flotiq-sync/php-sdk/lib/Model/MediaListAllOf.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/flotiq-sync/php-sdk/vendor/guzzlehttp/psr7/src/Request.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/flotiq-sync/php-sdk/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/flotiq-sync/php-sdk/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Interface 'OpenAPI\\Client\\Model\\ModelInterface' not found in wp-content/plugins/flotiq-sync/php-sdk/lib/Model/InlineResponse4006.php:43
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/flotiq-sync/php-sdk/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/flotiq-sync/php-sdk/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 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
5 plugin tags: backup, flotiq, wordpress, headless cms, synchronization
flotiq-sync/flotiq-sync.php Passed 13 tests
The entry point to "Flotiq Sync" version 1.0.5 is a PHP file that has certain tags in its header comment area
104 characters long description:
Use this WordPress plugin to easily connect your WordPress instance to Flotiq and synchronize your data.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected43,050 lines of code in 261 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 215 | 7,585 | 24,735 | 35,606 |
Markdown | 23 | 2,517 | 0 | 6,127 |
JSON | 15 | 1 | 0 | 1,190 |
YAML | 4 | 18 | 0 | 75 |
CSS | 1 | 1 | 0 | 24 |
Dockerfile | 1 | 8 | 0 | 10 |
SVG | 1 | 0 | 0 | 9 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 22.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 287.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 174 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 174 | 100.00% |
▷ Final classes | 18 | 10.34% |
Methods | 2,794 | |
▷ Static methods | 517 | 18.50% |
▷ Public methods | 2,598 | 92.98% |
▷ Protected methods | 72 | 2.58% |
▷ Private methods | 124 | 4.44% |
Functions | 339 | |
▷ Named functions | 68 | 20.06% |
▷ Anonymous functions | 271 | 79.94% |
Constants | 150 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 150 | 100.00% |
▷ Public constants | 150 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.29MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 82.91KB | 26.55KB | ▼ 67.98% |
assets/screenshot-1.png | 67.67KB | 26.29KB | ▼ 61.15% |
assets/screenshot-2.png | 137.54KB | 39.93KB | ▼ 70.97% |
assets/icon-256x256.png | 8.82KB | 3.89KB | ▼ 55.88% |
assets/icon-128x128.png | 3.56KB | 1.94KB | ▼ 45.46% |