Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.31MB] [CPU: ▼191.51ms] Passed 4 tests
Analyzing server-side resources used by Jannes & Mannes Social Media Auto Publisher
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 27.13 ▼13.73 |
Dashboard /wp-admin | 3.10 ▲0.04 | 34.22 ▼16.41 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 33.07 ▼2.25 |
Add New Post /wp-admin/post-new.php | 4.10 ▼1.34 | 27.79 ▼733.65 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 27.25 ▲5.03 |
Server storage [IO: ▲7.14MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Illegal file modification detected: 1 file (0.31KB) outside of "wp-content/plugins/jannes-mannes-social-media-auto-publisher/" and "wp-content/uploads/"
- (new file) wp-content/debug-2022-03-10.log
Filesystem: 2,244 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Jannes & Mannes Social Media Auto Publisher
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,725 ▲124 | 15.98 ▼0.05 | 5.40 ▼0.61 | 79.54 ▼15.76 |
Dashboard /wp-admin | 2,961 ▲67 | 6.14 ▲0.05 | 114.38 ▼32.62 | 166.75 ▼30.65 |
Posts /wp-admin/edit.php | 2,775 ▲35 | 3.22 ▼0.00 | 64.89 ▼0.29 | 135.53 ▼2.16 |
Add New Post /wp-admin/post-new.php | 3,803 ▼5 | 18.41 ▲0.89 | 426.22 ▲15.89 | 185.36 ▲24.43 |
Media Library /wp-admin/upload.php | 1,787 ▲38 | 5.54 ▼0.04 | 141.89 ▲1.53 | 190.40 ▲13.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 13× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/examples/autoload.Problem.And.Legacy.php
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/examples/files.php
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/examples/index.php
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/examples/legacy_examples/1.example.php
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/examples/TestingFunctions.php
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/tests/Autoload.test.php
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/examples/cookie.php
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/examples/sqlite.php
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/tests/NewCacheInstance.test.php
- > /wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/examples/legacy_examples/readme_legacy.php
- 1272× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit_Framework_Test' not found in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpunit/phpunit/src/Extensions/PhptTestCase.php:16
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/src/phpFastCache/_extensions/predis-1.0/src/Command/KeyDelete.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_Assert' not found in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpunit/phpunit/src/Extensions/TestDecorator.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Prophecy\\Promise\\PromiseInterface' not found in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpunit/phpunit/tests/Regression/Trac/684/Issue684Test.php:2
- > PHP Fatal error
Uncaught Error: Class 'Predis\\PredisException' not found in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/src/phpFastCache/_extensions/predis-1.0/src/Transaction/AbortedMultiExecException.php:21
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit_Framework_MockObject_Matcher_Invocation' not found in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/StatelessInvocation.php:21
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/src/phpFastCache/_extensions/predis-1.0/src/Command/ServerScript.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Prophecy\\Doubler\\ClassPatch\\ClassPatchInterface' not found in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php:24
- > PHP Fatal error
Uncaught Predis\\Connection\\ConnectionException: Connection refused [tcp://127.0.0.1:6379] in wp-content/plugins/jannes-mannes-social-media-auto-publisher/vendor/phpfastcache/phpfastcache/src/phpFastCache/_extensions/predis-1.0/src/Connection/AbstractConnection.php:146
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: linkedin, twitter, social, facebook, publisher...
jannes-mannes-social-media-auto-publisher/jm-social-media-auto-publisher.php 85% from 13 tests
"Jannes & Mannes Social Media Auto Publisher" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jannes-mannes-social-media-auto-publisher.php" instead of "jm-social-media-auto-publisher.php")
- Description: Make the plugin description longer than 10 characters (currently 0 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin126,785 lines of code in 2,087 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,813 | 25,100 | 59,464 | 109,371 |
Markdown | 82 | 3,197 | 0 | 6,772 |
JSON | 50 | 11 | 0 | 4,238 |
YAML | 61 | 262 | 114 | 3,931 |
XML | 55 | 110 | 28 | 1,169 |
Ant | 10 | 91 | 0 | 573 |
SVG | 1 | 0 | 0 | 288 |
XSD | 1 | 0 | 0 | 264 |
CSS | 3 | 26 | 4 | 98 |
INI | 1 | 6 | 6 | 24 |
make | 1 | 7 | 0 | 22 |
JavaScript | 7 | 5 | 21 | 20 |
Bourne Shell | 1 | 0 | 0 | 14 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 264.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 168 | |
Interfaces | 139 | |
Traits | 15 | |
Classes | 1,717 | |
▷ Abstract classes | 55 | 3.20% |
▷ Concrete classes | 1,662 | 96.80% |
▷ Final classes | 99 | 5.96% |
Methods | 9,116 | |
▷ Static methods | 782 | 8.58% |
▷ Public methods | 7,886 | 86.51% |
▷ Protected methods | 766 | 8.40% |
▷ Private methods | 464 | 5.09% |
Functions | 456 | |
▷ Named functions | 198 | 43.42% |
▷ Anonymous functions | 258 | 56.58% |
Constants | 264 | |
▷ Global constants | 20 | 7.58% |
▷ Class constants | 244 | 92.42% |
▷ Public constants | 244 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin