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.12MB] [CPU: ▼3.10ms] Passed 4 tests
Server-side resources used by Auto Gallery And Image Sync
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 35.83 ▼3.96 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.71 ▼2.59 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 48.69 ▲2.42 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 89.25 ▼8.27 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.48 ▲3.68 |
Sync images /wp-admin/tools.php?page=auto-gallery-image-sync | 3.36 | 37.82 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Auto Gallery And Image Sync
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.21 ▼1.40 | 1.77 ▼0.09 | 40.70 ▲3.20 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼0.96 | 110.60 ▼2.45 | 42.83 ▲0.95 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▼0.13 | 39.49 ▼4.28 | 39.12 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.70 ▼5.49 | 604.61 ▼9.71 | 53.06 ▲6.01 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▼0.04 | 94.22 ▼7.62 | 41.70 ▼2.21 |
Sync images /wp-admin/tools.php?page=auto-gallery-image-sync | 1,259 | 2.08 | 27.02 | 43.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function prepare_items() on null in wp-content/plugins/auto-gallery-image-sync/admin/partials/auto-gallery-image-sync-admin-display.php:16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-gallery-image-sync/admin/class-auto-gallery-image-sync-admin.php on line 26
- > PHP Notice
Undefined variable: agisync_atakanau in wp-content/plugins/auto-gallery-image-sync/admin/partials/auto-gallery-image-sync-admin-display.php on line 16
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/auto-gallery-image-sync/admin/class-auto-gallery-image-sync-admin.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/auto-gallery-image-sync/admin/class-auto-gallery-image-sync-admin.php on line 26
- > 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)
Everything seems fine, but this is not an exhaustive test
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: gallery, auto, image, sync, featured image
auto-gallery-image-sync/auto-gallery-image-sync.php Passed 13 tests
The principal PHP file in "Auto Gallery And Image Sync" v. 1.0.0 is loaded by WordPress automatically on each request
97 characters long description:
Automatically sync posts (or WooCommerce Product) and media images as featured image and gallery.
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
No dangerous file extensions were detected768 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 204 | 662 | 642 |
PO File | 1 | 31 | 6 | 92 |
CSS | 1 | 1 | 3 | 28 |
JavaScript | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 31 | 68.89% |
▷ Protected methods | 5 | 11.11% |
▷ Private methods | 9 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin