84% floating-ads-bottom

Code Review | Floating Ads Bottom

WordPress plugin Floating Ads Bottom scored84%from 54 tests.

About plugin

  • Plugin page: floating-ads-bottom
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.1
  • WordPress version: 6.3.1
  • First release: Aug 21, 2017
  • Latest release: Mar 13, 2019
  • Number of updates: 10
  • Update frequency: every 57.0 days
  • Top authors: abyrafa (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /29,608 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.01MB] [CPU: ▼11.29ms] Passed 4 tests

This is a short check of server-side resources used by Floating Ads Bottom
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.59 ▼1.58
Dashboard /wp-admin3.33 ▼0.0246.67 ▼10.58
Posts /wp-admin/edit.php3.38 ▲0.0247.45 ▲5.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.22 ▼31.16
Media Library /wp-admin/upload.php3.25 ▲0.0233.68 ▼1.85
Floating Ads Bottom /wp-admin/options-general.php?page=floating-ads-bottom3.2232.14

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Floating Ads Bottom
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.44 ▲0.061.74 ▼0.3543.44 ▲1.43
Dashboard /wp-admin2,210 ▲255.83 ▼0.05108.58 ▲3.0640.02 ▼0.23
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0138.81 ▼2.4936.28 ▲1.42
Add New Post /wp-admin/post-new.php1,517 ▼1617.78 ▼5.39663.69 ▲22.4056.39 ▼8.53
Media Library /wp-admin/upload.php1,386 ▲44.23 ▲0.0298.53 ▲5.6640.61 ▲0.93
Floating Ads Bottom /wp-admin/options-general.php?page=floating-ads-bottom8842.2125.4829.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/floating-ads-bottom/floating-ads-bottom.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: floating ad at the bottom, earn money, adsense, floating ad, google adsense...

floating-ads-bottom/floating-ads-bottom.php 92% from 13 tests

The main file in "Floating Ads Bottom" v. 1.0.3 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: If Twitter did it, so should we! Keep the description under 140 characters (currently 229 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin103 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1928103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/close.png0.70KB0.54KB▼ 22.42%