78% r3w-instafeed

Code Review | R3W InstaFeed

WordPress plugin R3W InstaFeed scored78%from 54 tests.

About plugin

  • Plugin page: r3w-instafeed
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 18, 2017
  • Latest release: Feb 18, 2017
  • Number of updates: 3
  • Update frequency: every 10.3 days
  • Top authors: rcabarreto1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /547 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.00ms] Passed 4 tests

Server-side resources used by R3W InstaFeed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.60 ▲0.90
Dashboard /wp-admin3.36 ▲0.0542.34 ▼8.82
Posts /wp-admin/edit.php3.41 ▲0.0542.95 ▼2.19
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.69 ▼5.88
Media Library /wp-admin/upload.php3.28 ▲0.0538.01 ▲4.25
InstaFeed /wp-admin/options-general.php?page=r3wif3.2228.91

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_r3wif_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for R3W InstaFeed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.72 ▼0.875.28 ▲3.3047.24 ▲2.55
Dashboard /wp-admin2,210 ▲194.84 ▼0.05102.76 ▼3.1839.05 ▼2.97
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0533.35 ▼5.0236.31 ▲0.78
Add New Post /wp-admin/post-new.php1,517 ▼1617.61 ▼5.46678.88 ▲8.6053.59 ▼1.31
Media Library /wp-admin/upload.php1,392 ▲44.17 ▲0.0297.19 ▲3.9543.29 ▲0.97
InstaFeed /wp-admin/options-general.php?page=r3wif8412.0324.2325.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_r3wif_widget
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=r3wif
    • > Notice in wp-content/plugins/r3w-instafeed/r3w-instafeed.php+92
    Undefined index: access_token
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=r3wif
    • > Warning in wp-content/plugins/r3w-instafeed/r3w-instafeed.php+147
    Use of undefined constant LJMM_PLUGIN_DOMAIN - assumed 'LJMM_PLUGIN_DOMAIN' (this will throw an Error in a future version of PHP)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/r3w-instafeed/r3w-instafeed-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/r3w-instafeed/r3w-instafeed-widget.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
You can look at the official readme.txt

r3w-instafeed/r3w-instafeed.php 92% from 13 tests

The main PHP file in "R3W InstaFeed" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin563 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2152356
PHP26719200
CSS1005
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity5.00
▷ Maximum class complexity9.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/sign_in_with_instagram.png5.63KB2.49KB▼ 55.73%