84% wp-fun

Code Review | WP Fun

WordPress plugin WP Fun scored84%from 54 tests.

About plugin

  • Plugin page: wp-fun
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5.2
  • WordPress version: 6.3.1
  • First release: May 18, 2016
  • Latest release: May 18, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: siddiknmh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by WP Fun
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.33 ▼1.22
Dashboard /wp-admin3.31 ▲0.0149.98 ▼0.18
Posts /wp-admin/edit.php3.36 ▲0.0147.52 ▼8.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.68 ▼8.13
Media Library /wp-admin/upload.php3.23 ▲0.0136.14 ▲2.18

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Fun
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11613.68 ▼0.598.81 ▲7.1244.73 ▲1.80
Dashboard /wp-admin2,200 ▲205.76 ▲0.1086.08 ▼7.1840.00 ▼3.23
Posts /wp-admin/edit.php2,102 ▲22.26 ▲0.2436.11 ▼2.5234.90 ▼3.03
Add New Post /wp-admin/post-new.php1,530 ▼123.23 ▲0.04657.71 ▲30.1055.80 ▼7.41
Media Library /wp-admin/upload.php1,399 ▼44.27 ▲0.09104.73 ▲3.3348.95 ▲7.12

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

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

Smoke tests 75% 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)
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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-fun/wp-fun.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: funny sound, fun, joks, funny

wp-fun/wp-fun.php Passed 13 tests

"WP Fun" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Just a funny farts sound plugin for WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected113 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript115188
PHP1192025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin