68% seo-with-fannewscast

Code Review | SEO with FanNewscast

WordPress plugin SEO with FanNewscast scored 68% from 54 tests.

About plugin

  • Plugin page: seo-with-fannewscast
  • Plugin version: 2.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 5.9.2
  • First release: Apr 1, 2013
  • Latest release: Nov 5, 2015
  • Number of updates: 13
  • Update frequency: every 72.9 days
  • Top authors: itagility (76.92%)pavel-dev (30.77%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,464 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.10MB] [CPU: ▼354.40ms] Passed 4 tests

Server-side resources used by SEO with FanNewscast
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1755.41 ▲2.11
Dashboard /wp-admin3.23 ▼0.1817.64 ▼16.16
Posts /wp-admin/edit.php3.23 ▼0.4117.81 ▼19.72
Add New Post /wp-admin/post-new.php3.23 ▼3.7418.84 ▼1,372.10
Media Library /wp-admin/upload.php3.23 ▼0.0616.29 ▼9.61

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 16 new options
New WordPress options
fnc_appid
fnc_query
fnc_ajax
fnc_css
fnc_ck
fnc_social_template
fnc_range
fnc_img_template
fnc_sortmenu
fnc_searchbox_template
...

Browser metrics Passed 4 tests

A check of browser resources used by SEO with FanNewscast
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,841 ▲9915.61 ▼0.436.21 ▲0.542.40 ▲0.17
Dashboard /wp-admin2,934 ▲766.02 ▼0.13120.13 ▼10.58183.88 ▲22.73
Posts /wp-admin/edit.php2,730 ▲363.24 ▲0.0163.43 ▲0.52141.87 ▼4.92
Add New Post /wp-admin/post-new.php1,744 ▲3321.21 ▼0.21411.92 ▼69.23190.25 ▲37.36
Media Library /wp-admin/upload.php1,738 ▲405.54 ▼0.01127.36 ▼12.55209.98 ▲24.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5600
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 16 options in the database
    • fnc_ajax
    • fnc_sortmenu
    • fnc_yt_img_template
    • fnc_social_template
    • fnc_sort_template
    • fnc_noitems_template
    • fnc_css
    • fnc_entry_template
    • fnc_img_template
    • fnc_ck
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/seo-with-fannewscast/tmpl_list.php
    • > /wp-content/plugins/seo-with-fannewscast/tmpl_ajax.php
    • > /wp-content/plugins/seo-with-fannewscast/tmpl_entry.php
    • > /wp-content/plugins/seo-with-fannewscast/tmpl_search.php
    • > /wp-content/plugins/seo-with-fannewscast/tmpl_social.php
    • > /wp-content/plugins/seo-with-fannewscast/tmpl_noitems.php
    • > /wp-content/plugins/seo-with-fannewscast/tmpl_sort.php
    • > /wp-content/plugins/seo-with-fannewscast/tmpl_yt_img.php
    • > /wp-content/plugins/seo-with-fannewscast/tmpl_img.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-with-fannewscast/seo-with-fannewscast.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/seo-with-fannewscast/settings.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

seo-with-fannewscast/seo-with-fannewscast.php 92% from 13 tests

The main PHP script in "SEO with FanNewscast" version 2.1.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 401 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,149 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12156841,078
CSS18071

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions12
▷ Named functions12100.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
11 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_gplus.png3.10KB0.46KB▼ 85.22%
images/icon_linkedin.png3.06KB0.54KB▼ 82.43%
images/social-sharing-sprite.png1.35KB1.25KB▼ 6.82%
images/search_grey.png0.30KB0.21KB▼ 29.26%
images/icon_s.png3.47KB0.93KB▼ 73.25%