10% wpfeed-news

Code Review | WpFeed News

WordPress plugin WpFeed News scored 10% from 54 tests.

About plugin

  • Plugin page: wpfeed-news
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: May 6, 2013
  • Latest release: May 6, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: dileep1984 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 705 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wpfeed-news/feednews.php+137
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼49.84ms] Passed 4 tests

A check of server-side resources used by WpFeed News
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.31 ▼38.66
Dashboard /wp-admin2.05 ▼1.265.52 ▼39.56
Posts /wp-admin/edit.php2.05 ▼1.315.80 ▼39.05
Add New Post /wp-admin/post-new.php2.05 ▼3.845.57 ▼82.10
Media Library /wp-admin/upload.php2.05 ▼1.185.71 ▼30.63

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WpFeed News
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.24 ▼1.331.80 ▼0.3146.73 ▼1.43
Dashboard /wp-admin2,210 ▲224.86 ▼0.15107.32 ▲0.9943.80 ▼3.99
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0440.19 ▲0.7936.26 ▲2.13
Add New Post /wp-admin/post-new.php1,522 ▲823.55 ▲5.97676.36 ▲2.2156.39 ▲5.37
Media Library /wp-admin/upload.php1,395 ▲44.20 ▼0.0395.96 ▼5.7340.03 ▼5.15
Wp Feed News /wp-admin/feednews.php260.440.0912.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wpfeed-news/feednews.php+137
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wpfeed-news/feednews.php:132

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/feednews.php
    • > Network (severe)
    wp-admin/feednews.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (screenshot.png)
Please take inspiration from this readme.txt

wpfeed-news/feednews.php 92% from 13 tests

This is the main PHP file of "WpFeed News" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpfeed-news.php" instead of "feednews.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected131 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28247131

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) screenshot.png24.99KB0.00KB▼ 100.00%