83% add-to-feedly

Code Review | Add to Feedly

WordPress plugin Add to Feedly scored 83% from 54 tests.

About plugin

  • Plugin page: add-to-feedly
  • Plugin version: 1.2.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.4
  • WordPress version: 6.3.1
  • First release: Jul 31, 2013
  • Latest release: Mar 23, 2018
  • Number of updates: 29
  • Update frequency: every 58.5 days
  • Top authors: davidmerinas (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 8,421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.30MB] [CPU: ▼9.83ms] Passed 4 tests

An overview of server-side resources used by Add to Feedly
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.369.14 ▼33.77
Dashboard /wp-admin3.35 ▲0.0546.26 ▼4.22
Posts /wp-admin/edit.php3.40 ▲0.0549.58 ▲3.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0583.62 ▼4.36
Media Library /wp-admin/upload.php3.28 ▲0.0543.79 ▲9.69

Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Add to Feedly
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲25413.69 ▼0.999.36 ▲7.5038.57 ▼12.61
Dashboard /wp-admin2,224 ▲364.92 ▼0.01109.38 ▼3.4479.57 ▲31.49
Posts /wp-admin/edit.php2,110 ▲211.98 ▼0.0337.81 ▲2.2634.41 ▲1.56
Add New Post /wp-admin/post-new.php1,690 ▲14824.68 ▲1.32622.41 ▼29.8354.01 ▲0.26
Media Library /wp-admin/upload.php1,403 ▲154.24 ▲0.0098.46 ▼10.9944.64 ▼2.57

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/add-to-feedly/addtofeedly.php:204

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt is a good inspiration

add-to-feedly/addtofeedly.php 85% from 13 tests

"Add to Feedly" version 1.2.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-to-feedly.php" instead of "addtofeedly.php")
  • Description: The description should be shorter than 140 characters (currently 185 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,440 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG1001,061
PHP12720171
PO File45260168
CSS13020
JavaScript22320

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.33MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/addtofeedly_master.png18.37KB7.23KB▼ 60.65%
images/addtofeedly_es.png21.01KB8.24KB▼ 60.80%
images/feedly-follow-medium.png6.98KB2.59KB▼ 62.92%
images/addtofeedly_fr.png21.12KB8.17KB▼ 61.33%
images/icon.png3.43KB0.55KB▼ 84.11%