84% atticthemes-social-feed

Code Review | AtticThemes: Social Feed

WordPress plugin AtticThemes: Social Feed scored84%from 54 tests.

About plugin

  • Plugin page: atticthemes-socia...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Oct 4, 2016
  • Number of updates: 9
  • Update frequency: every 8.3 days
  • Top authors: AtticThemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.35ms] Passed 4 tests

Server-side resources used by AtticThemes: Social Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.18 ▼6.85
Dashboard /wp-admin3.44 ▲0.1446.31 ▲0.69
Posts /wp-admin/edit.php3.55 ▲0.2053.78 ▲4.94
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.90 ▼14.30
Media Library /wp-admin/upload.php3.36 ▲0.1339.10 ▲3.08
Instagram /wp-admin/options-general.php?page=atsf-instagram3.42252.91
Dribbble /wp-admin/options-general.php?page=atsf-dribbble3.34280.06

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 10 new options
New WordPress options
widget_atsf_dribbble
atsf_dribbble_cache_expire_time
atsf_instagram_cache_expire_time
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
widget_atsf_instagram
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for AtticThemes: Social Feed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.29 ▼1.005.74 ▲3.6340.00 ▼5.19
Dashboard /wp-admin2,216 ▲284.80 ▼1.09100.60 ▼5.9841.34 ▼3.45
Posts /wp-admin/edit.php2,099 ▲72.05 ▲0.0134.48 ▼10.9135.58 ▲1.18
Add New Post /wp-admin/post-new.php1,522 ▼1417.67 ▼5.56675.47 ▼6.3756.23 ▼5.28
Media Library /wp-admin/upload.php1,398 ▲164.19 ▼0.0194.50 ▼12.0742.24 ▼1.70
Instagram /wp-admin/options-general.php?page=atsf-instagram8201.9921.9624.33
Dribbble /wp-admin/options-general.php?page=atsf-dribbble8142.0224.8024.64

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
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_atsf_dribbble
    • widget_recent-posts
    • widget_theysaidso_widget
    • atsf_dribbble_cache_expire_time
    • theysaidso_admin_options
    • widget_atsf_instagram
    • atsf_instagram_cache_expire_time
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/atticthemes-social-feed/includes/dribbble/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/atticthemes-social-feed/includes/instagram/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/atticthemes-social-feed/atticthemes-social-feed.php:119
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/atticthemes-social-feed/includes/instagram/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/atticthemes-social-feed/includes/dribbble/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AtticThemes_SocialFeed' not found in wp-content/plugins/atticthemes-social-feed/includes/instagram/class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'AtticThemes_SocialFeed' not found in wp-content/plugins/atticthemes-social-feed/includes/dribbble/class.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (**Instagram Settings Page - Disconnected**.), #2 (**Instagram Settings Page - Connected**.)
The official readme.txt is a good inspiration

atticthemes-social-feed/atticthemes-social-feed.php 92% from 13 tests

Analyzing the main PHP file in "AtticThemes: Social Feed" version 1.0.1
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 256 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
Good job! No executable or dangerous file extensions detected1,010 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7368445762
CSS41010223
SVG13025

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity21.00
▷ Minimum class complexity2.00
▷ Maximum class complexity41.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods43
▷ Static methods3581.40%
▷ Public methods3990.70%
▷ Protected methods00.00%
▷ Private methods49.30%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants24
▷ Global constants00.00%
▷ Class constants24100.00%
▷ Public constants24100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.17MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png111.17KB31.63KB▼ 71.55%
screenshot-1.png64.64KB17.87KB▼ 72.35%