84% line-today-feed-by-tannysoft

Code Review | Line Today Feed by Tannysoft

WordPress plugin Line Today Feed by Tannysoft scored84%from 54 tests.

About plugin

  • Plugin page: line-today-feed-b...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Oct 11, 2022
  • Number of updates: 8
  • Update frequency: every 181.0 days
  • Top authors: tannysoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /998 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.73ms] Passed 4 tests

Analyzing server-side resources used by Line Today Feed by Tannysoft
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0548.92 ▲6.19
Dashboard /wp-admin3.34 ▲0.0452.13 ▲0.77
Posts /wp-admin/edit.php3.38 ▲0.0253.75 ▲2.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.45 ▼12.23
Media Library /wp-admin/upload.php3.27 ▲0.0341.47 ▲6.90

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Line Today Feed by Tannysoft
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.34 ▼0.221.77 ▲0.0544.46 ▲0.23
Dashboard /wp-admin2,189 ▲125.57 ▼0.0889.63 ▼3.9044.77 ▲0.24
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0437.01 ▼2.0737.12 ▼3.01
Add New Post /wp-admin/post-new.php1,531 ▲323.00 ▼0.44651.68 ▲14.3756.00 ▼5.73
Media Library /wp-admin/upload.php1,400 ▲64.27 ▲0.08101.39 ▲0.1346.94 ▲2.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/line-today-feed-by-tannysoft/line-today-feed.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/line-today-feed-by-tannysoft/data/list.php:16

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: linetoday, rss, social, xml, line-today...

line-today-feed-by-tannysoft/line-today-feed.php 85% from 13 tests

The main file in "Line Today Feed by Tannysoft" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("line-today-feed-by-tannysoft.php" instead of "line-today-feed.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin118 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2817118

PHP code Passed 2 tests

A short 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.21
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin