84% taeggie-feed

Code Review | Taeggie Feed

WordPress plugin Taeggie Feed scored84%from 54 tests.

About plugin

  • Plugin page: taeggie-feed
  • Plugin version: 0.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.7.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Sep 18, 2023
  • Number of updates: 39
  • Update frequency: every 61.0 days
  • Top authors: Taeggie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,195 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
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.09ms] Passed 4 tests

Server-side resources used by Taeggie Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.88 ▲1.78
Dashboard /wp-admin3.31 ▼0.0344.20 ▼15.43
Posts /wp-admin/edit.php3.36 ▲0.0145.71 ▼3.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.89 ▼23.62
Media Library /wp-admin/upload.php3.23 ▲0.0137.97 ▲4.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Taeggie Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.60 ▼0.585.66 ▲4.0542.96 ▲3.66
Dashboard /wp-admin2,206 ▲155.80 ▲0.9096.04 ▼4.5536.88 ▼4.19
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0532.93 ▼6.5733.73 ▲1.29
Add New Post /wp-admin/post-new.php1,521 ▼123.19 ▲0.05675.63 ▲81.8253.04 ▼6.93
Media Library /wp-admin/upload.php1,391 ▲64.12 ▼0.06112.31 ▲16.1546.85 ▲4.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taeggie-feed/taeggie_feed.php:70

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
6 plugin tags: taeggie, social feed, linkedin, twitter, instagram...

taeggie-feed/taeggie_feed.php 85% from 13 tests

The main PHP script in "Taeggie Feed" version 0.1.7 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("taeggie-feed.php" instead of "taeggie_feed.php")
  • Description: The description should be shorter than 140 characters (currently 158 characters long)

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
Everything looks great! No dangerous files found in this plugin41 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1172234
JSON1007

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin