84% funny-text

Code Review | Funny Text

WordPress plugin Funny Text scored84%from 54 tests.

About plugin

  • Plugin page: funny-text
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 23, 2016
  • Latest release: Mar 26, 2018
  • Number of updates: 8
  • Update frequency: every 69.5 days
  • Top authors: anshuln90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,272 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.34ms] Passed 4 tests

A check of server-side resources used by Funny Text
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.00 ▼2.65
Dashboard /wp-admin3.32 ▲0.0147.67 ▼4.90
Posts /wp-admin/edit.php3.37 ▲0.0149.57 ▼7.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.64 ▼22.02
Media Library /wp-admin/upload.php3.24 ▲0.0135.90 ▼0.24
Funny Text /wp-admin/options-general.php?page=funny-text-setting3.2133.34

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Funny Text
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.57 ▼0.797.91 ▲5.8541.21 ▼2.13
Dashboard /wp-admin2,219 ▲135.80 ▲0.8999.80 ▼3.2637.53 ▼2.59
Posts /wp-admin/edit.php2,104 ▲12.00 ▼0.0536.96 ▼7.5333.72 ▼3.65
Add New Post /wp-admin/post-new.php1,529 ▼1817.61 ▼5.79629.56 ▼25.0550.46 ▼4.43
Media Library /wp-admin/upload.php1,398 ▼24.16 ▼0.0396.11 ▼12.7741.01 ▼4.21
Funny Text /wp-admin/options-general.php?page=funny-text-setting8462.0122.4330.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/funny-text/funny-text.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

funny-text/funny-text.php Passed 13 tests

The main PHP file in "Funny Text" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
A WordPress plugin for Create funny and crazy moving texts in a simple way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin296 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25166198
PHP173665
CSS10733

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin