78% wp-fade-in-text-news

Code Review | WP fade in text news

WordPress plugin WP fade in text news scored78%from 54 tests.

About plugin

  • Plugin page: wp-fade-in-text-news
  • Plugin version: 12.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Apr 23, 2011
  • Latest release: Oct 28, 2023
  • Number of updates: 80
  • Update frequency: every 57.2 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /28,633 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by WP fade in text news
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.14 ▼1.13
Dashboard /wp-admin3.32 ▼0.0241.67 ▼16.58
Posts /wp-admin/edit.php3.37 ▲0.0243.67 ▼12.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0278.97 ▼16.03
Media Library /wp-admin/upload.php3.24 ▲0.0135.92 ▲2.44
Fade in text news /wp-admin/options-general.php?page=wp-fade-in-text-news3.2830.44

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: 1 new table, 14 new options
New tables
wp_FadeInText_plugin
New WordPress options
FadeIn_FadeIn
FadeIn_bFadeOutt
FadeIn_group
widget_recent-comments
FadeIn_FadeOut
FadeIn_FadeWait
widget_recent-posts
FadeIn_Fade
FadeIn_FadeStep
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for WP fade in text news
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.24 ▼0.1013.12 ▲11.6038.40 ▼1.47
Dashboard /wp-admin2,196 ▲225.53 ▼0.0281.58 ▼8.6537.93 ▼3.97
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0434.25 ▼2.1434.31 ▲2.75
Add New Post /wp-admin/post-new.php1,531 ▼023.24 ▲0.15668.88 ▲23.8648.88 ▼8.27
Media Library /wp-admin/upload.php1,404 ▲74.21 ▲0.0094.34 ▼4.6439.80 ▼2.12
Fade in text news /wp-admin/options-general.php?page=wp-fade-in-text-news1,0072.1623.8824.00

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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)
Good news, no errors were detected

SRP 0% 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 items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-fade-in-text-news/pages/widget-setting.php
    • > /wp-content/plugins/wp-fade-in-text-news/pages/content-management-add.php
    • > /wp-content/plugins/wp-fade-in-text-news/pages/content-management-show.php
    • > /wp-content/plugins/wp-fade-in-text-news/pages/content-management-edit.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-fade-in-text-news/wp-fade-in-text-news.php:22
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-fade-in-text-news/wp-fade-in-text-news.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: news, fade in, fadein, fade-in, wordpress...

wp-fade-in-text-news/wp-fade-in-text-news.php 92% from 13 tests

The main file in "WP fade in text news" v. 12.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,358 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP69246839
PO File3160261373
JavaScript31423146

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues 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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin