84% ipanema-twitter-feed

Code Review | Ipanema Twitter Feed

WordPress plugin Ipanema Twitter Feed scored84%from 54 tests.

About plugin

  • Plugin page: ipanema-twitter-feed
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: Nov 1, 2022
  • Number of updates: 16
  • Update frequency: every 3.3 days
  • Top authors: segcgonz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /170 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.58ms] Passed 4 tests

This is a short check of server-side resources used by Ipanema Twitter Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.27 ▼1.85
Dashboard /wp-admin3.38 ▲0.0446.52 ▼16.79
Posts /wp-admin/edit.php3.44 ▲0.0845.88 ▼0.81
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.54 ▼2.86
Media Library /wp-admin/upload.php3.31 ▲0.0838.02 ▲4.04
Ipanema Twitter Feed /wp-admin/options-general.php?page=itf-admin-menu3.2638.86

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
itf_gt_database_options_4
theysaidso_admin_options
can_compress_scripts
itf_gt_database_options_2
itf_gt_database_options_1
widget_theysaidso_widget
itf_gt_database_options_3
itf_gt_database_options_5
widget_recent-comments
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ipanema Twitter Feed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.54 ▲0.281.59 ▼0.3140.01 ▼2.36
Dashboard /wp-admin2,204 ▲275.65 ▼0.0289.89 ▼11.4638.65 ▼2.92
Posts /wp-admin/edit.php2,106 ▲32.03 ▼0.0132.56 ▼2.6431.40 ▼4.08
Add New Post /wp-admin/post-new.php1,542 ▲1418.36 ▼4.76596.11 ▼103.4167.31 ▲10.08
Media Library /wp-admin/upload.php1,409 ▲64.16 ▼0.0795.11 ▼4.3143.10 ▼1.29
Ipanema Twitter Feed /wp-admin/options-general.php?page=itf-admin-menu1,2342.0423.5132.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 11 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • itf_gt_database_options_1
    • widget_recent-comments
    • itf_gt_database_options_5
    • widget_theysaidso_widget
    • itf_gt_database_options_4
    • itf_gt_database_options_3
    • can_compress_scripts
    • ...

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ipanema-twitter-feed/include/functions/functions.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

ipanema-twitter-feed/ipanema-twitter-feed.php Passed 13 tests

The main file in "Ipanema Twitter Feed" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
65 characters long description:
This plugin lets you add a twitter feed into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected494 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP47578355
PO File14343138
CSS1161

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin