Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/photostream-sync/photostream-sync.php+1756
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.40MB] [CPU: ▼50.73ms] Passed 4 tests
Server-side resources used by Photostream-sync
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.58 ▼0.88 | 6.32 ▼32.56 |
Dashboard /wp-admin | 2.60 ▼0.70 | 8.32 ▼38.51 |
Posts /wp-admin/edit.php | 2.60 ▼0.75 | 6.98 ▼46.90 |
Add New Post /wp-admin/post-new.php | 2.60 ▼3.28 | 8.94 ▼84.94 |
Media Library /wp-admin/upload.php | 2.60 ▼0.63 | 6.59 ▼26.47 |
Photostreams /wp-admin/upload.php?page=photostream | 2.60 | 6.57 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Photostream-sync: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.06 | 1.84 ▲0.20 | 46.00 ▲4.68 |
Dashboard /wp-admin | 2,210 ▲22 | 5.79 ▲0.92 | 108.25 ▼7.64 | 42.55 ▲0.70 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.03 | 33.53 ▼11.30 | 34.88 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.35 ▼4.78 | 597.41 ▼17.42 | 59.73 ▼1.61 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.17 ▼0.02 | 94.66 ▼24.96 | 42.85 ▼4.26 |
Photostreams /wp-admin/upload.php?page=photostream | 835 | 2.06 | 29.91 | 32.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/photostream-sync/photostream-sync.php+1756
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=photostream
- > Deprecated in wp-content/plugins/photostream-sync/class-photostream-client.php+86
Array and string offset access syntax with curly braces is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > 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/photostream-sync/class-photostream-list-table.php on line 6
- > 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/photostream-sync/class-photostream-list-table.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/photostream-sync/class-photostream-list-table.php on line 6
- > 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/photostream-sync/class-photostream-list-table.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/photostream-sync/class-photostream-list-table.php on line 6
- > 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/photostream-sync/class-photostream-list-table.php on line 6
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
photostream-sync/photostream-sync.php Passed 13 tests
The main PHP file in "Photostream-sync" ver. 2.1.2 adds more information about the plugin and also serves as the entry point for this plugin
137 characters long description:
Synchronize your public iCloud photostreams to your WordPress installation. Import images, Import videos, create gallery posts, and more.
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 detected1,767 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 345 | 381 | 1,488 |
CSS | 1 | 18 | 3 | 209 |
JavaScript | 4 | 20 | 21 | 70 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 67 | 89.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 10.67% |
Functions | 4 | |
▷ Named functions | 4 | 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