78% sync-feedly

Code Review | Sync Feedly

WordPress plugin Sync Feedly scored78%from 54 tests.

About plugin

  • Plugin page: sync-feedly
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 21, 2020
  • Latest release: Jan 10, 2021
  • Number of updates: 4
  • Update frequency: every 28.8 days
  • Top authors: cristianr909090 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,115 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0744.71 ▲2.57
Dashboard /wp-admin3.38 ▲0.0848.77 ▼2.69
Posts /wp-admin/edit.php3.43 ▲0.0750.78 ▲2.93
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.58 ▼7.79
Media Library /wp-admin/upload.php3.31 ▲0.0737.40 ▲2.57
Feedly Manage /wp-admin/admin.php?page=crsf_manage_menu3.2736.39
Settings /wp-admin/admin.php?page=crsf_manage_setting3.2734.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3414.35 ▼0.181.55 ▼0.4941.35 ▼3.02
Dashboard /wp-admin2,225 ▲485.64 ▲0.0484.67 ▼12.1038.57 ▼3.38
Posts /wp-admin/edit.php2,130 ▲302.01 ▼0.0037.46 ▼0.5635.00 ▼5.22
Add New Post /wp-admin/post-new.php1,550 ▲1322.97 ▲4.50670.37 ▲53.2452.88 ▲2.85
Media Library /wp-admin/upload.php1,427 ▲244.22 ▲0.01100.69 ▼2.3145.62 ▼0.34
Feedly Manage /wp-admin/admin.php?page=crsf_manage_menu8472.0127.3029.56
Settings /wp-admin/admin.php?page=crsf_manage_setting8732.0423.3830.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP7039,76325,73145,316
YAML32181893,357
JSON22601,594
XML4110612984
Markdown243600736
Ant101036668
SVG100288
XSD100255
CSS4274131
JavaScript872237
reStructuredText2231831

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 code0.32
Average class complexity5.79
▷ Minimum class complexity1.00
▷ Maximum class complexity209.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity140.00
Code structure
Namespaces27
Interfaces43
Traits1
Classes747
▷ Abstract classes263.48%
▷ Concrete classes72196.52%
▷ Final classes50.69%
Methods3,042
▷ Static methods32210.59%
▷ Public methods2,58384.91%
▷ Protected methods31610.39%
▷ Private methods1434.70%
Functions206
▷ Named functions17785.92%
▷ Anonymous functions2914.08%
Constants77
▷ Global constants1316.88%
▷ Class constants6483.12%
▷ Public constants64100.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
FileSize - originalSize - compressedSavings
images/feedly.png4.64KB0.64KB▼ 86.14%