Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.41MB] [CPU: ▲7.21ms] Passed 4 tests
Analyzing server-side resources used by Remote Media Libraries
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.57 ▲1.11 | 47.29 ▲8.32 |
Dashboard /wp-admin | 4.82 ▲1.51 | 59.82 ▲8.56 |
Posts /wp-admin/edit.php | 4.87 ▲1.52 | 56.32 ▲9.70 |
Add New Post /wp-admin/post-new.php | 7.43 ▲1.55 | 107.38 ▲2.25 |
Media Library /wp-admin/upload.php | 4.74 ▲1.52 | 50.79 ▲18.68 |
Remote Libraries /wp-admin/edit.php?post_type=rmlaccounts | 4.79 | 43.85 |
Server storage [IO: ▲2.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 758 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Remote Media Libraries
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 13.45 ▼1.14 | 1.77 ▼0.08 | 42.68 ▼1.77 |
Dashboard /wp-admin | 2,321 ▲136 | 4.98 ▲0.12 | 104.64 ▼2.27 | 39.15 ▼5.86 |
Posts /wp-admin/edit.php | 2,209 ▲120 | 2.36 ▲0.38 | 45.28 ▲9.06 | 34.85 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,599 ▲66 | 23.46 ▲0.09 | 612.39 ▲4.86 | 32.22 ▼32.02 |
Media Library /wp-admin/upload.php | 1,529 ▲147 | 4.52 ▲0.33 | 107.97 ▲5.53 | 46.83 ▲3.24 |
Remote Libraries /wp-admin/edit.php?post_type=rmlaccounts | 1,173 | 2.30 | 45.15 | 32.81 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 511× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPRemoteMediaExt\\Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchSizeDivisorTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPRemoteMediaExt\\Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Async/AsyncPluginTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'WPRemoteMediaExt\\Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Builder/ServiceBuilderTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPRemoteMediaExt\\Guzzle\\Tests\\Parser\\Message\\MessageParserProvider' not found in wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/MessageParserTest.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/remote-medias-lite/views/admin/media-activation-gdrive.php:3
- > PHP Fatal error
Uncaught Error: Interface 'WPRemoteMediaExt\\Guzzle\\Stream\\StreamInterface' not found in wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/src/Guzzle/Http/EntityBodyInterface.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPRemoteMediaExt\\Symfony\\Component\\EventDispatcher\\Event' not found in wp-content/plugins/remote-medias-lite/vendor/symfony/event-dispatcher/GenericEvent.php:21
- > PHP Fatal error
Uncaught Error: Class 'WPRemoteMediaExt\\Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/tests/Guzzle/Tests/Log/ClosureLogAdapterTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'WPRemoteMediaExt\\Guzzle\\Service\\ConfigLoaderInterface' not found in wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/src/Guzzle/Service/CachingConfigLoader.php:10
- > PHP Fatal error
Uncaught Error: Interface 'WPRemoteMediaExt\\Symfony\\Component\\EventDispatcher\\EventDispatcherInterface' not found in wp-content/plugins/remote-medias-lite/vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
remote-medias-lite/remote-medias-libs.php 92% from 13 tests
Analyzing the main PHP file in "Remote Media Libraries" version 1.6.3
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("remote-medias-lite.php" instead of "remote-medias-libs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin50,095 lines of code in 735 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 605 | 8,561 | 13,615 | 42,970 |
reStructuredText | 30 | 1,236 | 1,794 | 1,824 |
JSON | 43 | 13 | 0 | 1,724 |
Markdown | 10 | 288 | 0 | 1,364 |
JavaScript | 26 | 145 | 147 | 995 |
CSS | 9 | 67 | 16 | 649 |
XML | 5 | 31 | 11 | 235 |
make | 1 | 24 | 5 | 124 |
HTML | 2 | 16 | 0 | 92 |
Python | 1 | 22 | 23 | 50 |
Ant | 1 | 10 | 1 | 34 |
YAML | 1 | 3 | 0 | 19 |
Sass | 1 | 2 | 2 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 117 | |
Interfaces | 62 | |
Traits | 2 | |
Classes | 541 | |
▷ Abstract classes | 33 | 6.10% |
▷ Concrete classes | 508 | 93.90% |
▷ Final classes | 1 | 0.20% |
Methods | 3,865 | |
▷ Static methods | 153 | 3.96% |
▷ Public methods | 3,605 | 93.27% |
▷ Protected methods | 224 | 5.80% |
▷ Private methods | 36 | 0.93% |
Functions | 160 | |
▷ Named functions | 3 | 1.88% |
▷ Anonymous functions | 157 | 98.12% |
Constants | 93 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 93 | 100.00% |
▷ Public constants | 93 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 7.47KB | 3.65KB | ▼ 51.07% |
vendor/guzzle/guzzle/docs/_static/guzzle-icon.png | 0.78KB | 0.94KB | 0.00% |
vendor/guzzle/guzzle/docs/_static/logo.png | 242.92KB | 69.68KB | ▼ 71.32% |
assets/img/logo-dev.png | 8.37KB | 4.18KB | ▼ 50.06% |