84% wp-floating-notifications

Code Review | Wp Floating Notifications

WordPress plugin Wp Floating Notifications scored 84% from 54 tests.

About plugin

  • Plugin page: wp-floating-notif...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: May 12, 2015
  • Latest release: May 14, 2015
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: vishal1610kamal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 775 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
Installer ran successfully

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

Analyzing server-side resources used by Wp Floating Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.43 ▼4.36
Dashboard /wp-admin3.32 ▲0.0144.62 ▼3.71
Posts /wp-admin/edit.php3.37 ▲0.0144.13 ▼2.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.91 ▼4.69
Media Library /wp-admin/upload.php3.24 ▲0.0136.82 ▲3.57

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Wp Floating Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9514.41 ▲0.152.39 ▲0.5940.75 ▲1.73
Dashboard /wp-admin2,206 ▲184.84 ▼0.05111.62 ▲10.4938.32 ▼1.33
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0439.77 ▲2.7536.06 ▲3.70
Add New Post /wp-admin/post-new.php1,534 ▲123.39 ▲0.13661.70 ▼9.6955.16 ▼2.63
Media Library /wp-admin/upload.php1,388 ▲64.14 ▼0.0693.87 ▼3.5844.22 ▲1.14

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-floating-notifications/wp-floating-notification.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: agil

wp-floating-notifications/wp-floating-notification.php 92% from 13 tests

The main PHP script in "Wp Floating Notifications" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-floating-notifications.php" instead of "wp-floating-notification.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
There were no executable files found in this plugin103 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121249
CSS11045
JavaScript1009

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin