Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.34ms] Passed 4 tests
Analyzing server-side resources used by Sync Feedly
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 44.71 ▲2.57 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.77 ▼2.69 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 50.78 ▲2.93 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.58 ▼7.79 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 37.40 ▲2.57 |
Feedly Manage /wp-admin/admin.php?page=crsf_manage_menu | 3.27 | 36.39 |
Settings /wp-admin/admin.php?page=crsf_manage_setting | 3.27 | 34.59 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 45 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_crsf_synced_articles |
wp_crsf_test |
wp_crsf_board_detail |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Sync Feedly: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲34 | 14.35 ▼0.18 | 1.55 ▼0.49 | 41.35 ▼3.02 |
Dashboard /wp-admin | 2,225 ▲48 | 5.64 ▲0.04 | 84.67 ▼12.10 | 38.57 ▼3.38 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.01 ▼0.00 | 37.46 ▼0.56 | 35.00 ▼5.22 |
Add New Post /wp-admin/post-new.php | 1,550 ▲13 | 22.97 ▲4.50 | 670.37 ▲53.24 | 52.88 ▲2.85 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.22 ▲0.01 | 100.69 ▼2.31 | 45.62 ▼0.34 |
Feedly Manage /wp-admin/admin.php?page=crsf_manage_menu | 847 | 2.01 | 27.30 | 29.56 |
Settings /wp-admin/admin.php?page=crsf_manage_setting | 873 | 2.04 | 23.38 | 30.39 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/phpunit/build/phar-version.php
- > /wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/phpunit/build/phar-manifest.php
- 419× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php:57
- > PHP Fatal error
Uncaught Error: Interface 'MockTestInterface' not found in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AbstractMockTestClass.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/phpunit/tests/Regression/GitHub/1471/Issue1471Test.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/phpunit/tests/_files/IsolationTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/php-code-coverage/tests/_files/NotExistingCoveredElementTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_AssertionFailedError' not found in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/phpunit/src/Framework/RiskyTestError.php:58
- > PHP Fatal error
Uncaught Error: Class 'AbstractTest' not found in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/phpunit/tests/_files/ConcreteTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePrivateTest.php:2
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/php-code-coverage/tests/PHP/_files/../TestCase.php' (include_path='.:/usr/share/php') in wp-content/plugins/sync-feedly/feedly-api/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/CloverTest.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: wordpress, syncing, feedly, news
sync-feedly/sync-feedly.php 92% from 13 tests
"Sync Feedly" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Git Repository: Please do not include Git repositories in your plugin
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
Success! There were no dangerous files found in this plugin53,397 lines of code in 848 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 703 | 9,763 | 25,731 | 45,316 |
YAML | 32 | 181 | 89 | 3,357 |
JSON | 22 | 6 | 0 | 1,594 |
XML | 41 | 106 | 12 | 984 |
Markdown | 24 | 360 | 0 | 736 |
Ant | 10 | 103 | 6 | 668 |
SVG | 1 | 0 | 0 | 288 |
XSD | 1 | 0 | 0 | 255 |
CSS | 4 | 27 | 4 | 131 |
JavaScript | 8 | 7 | 22 | 37 |
reStructuredText | 2 | 23 | 18 | 31 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 43 | |
Traits | 1 | |
Classes | 747 | |
▷ Abstract classes | 26 | 3.48% |
▷ Concrete classes | 721 | 96.52% |
▷ Final classes | 5 | 0.69% |
Methods | 3,042 | |
▷ Static methods | 322 | 10.59% |
▷ Public methods | 2,583 | 84.91% |
▷ Protected methods | 316 | 10.39% |
▷ Private methods | 143 | 4.70% |
Functions | 206 | |
▷ Named functions | 177 | 85.92% |
▷ Anonymous functions | 29 | 14.08% |
Constants | 77 | |
▷ Global constants | 13 | 16.88% |
▷ Class constants | 64 | 83.12% |
▷ Public constants | 64 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/feedly.png | 4.64KB | 0.64KB | ▼ 86.14% |