10% float-ads-fixed-position

Code Review | Float Ads Fixed Position

WordPress plugin Float Ads Fixed Position scored10%from 54 tests.

About plugin

  • Plugin page: float-ads-fixed-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2013
  • Latest release: Mar 14, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: saokim (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /5,653 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/float-ads-fixed-position/float-ads-fixed-position.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; Float_Ads_Fixed_Position has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼56.28ms] Passed 4 tests

A check of server-side resources used by Float Ads Fixed Position
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.63 ▼36.52
Dashboard /wp-admin2.10 ▼1.206.86 ▼46.62
Posts /wp-admin/edit.php2.10 ▼1.265.62 ▼44.43
Add New Post /wp-admin/post-new.php2.10 ▼3.796.12 ▼97.55
Media Library /wp-admin/upload.php2.10 ▼1.135.31 ▼30.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_float_ads_fixed_position
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Float Ads Fixed Position: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲11013.44 ▼0.9211.64 ▲9.6443.24 ▼1.58
Dashboard /wp-admin2,198 ▲215.61 ▲0.0394.49 ▲0.0341.87 ▼3.96
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0135.00 ▼2.4034.50 ▼6.52
Add New Post /wp-admin/post-new.php1,526 ▼023.61 ▲0.08694.81 ▲44.4652.98 ▲2.98
Media Library /wp-admin/upload.php1,394 ▼34.21 ▲0.0299.75 ▲4.3044.77 ▲2.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/float-ads-fixed-position/float-ads-fixed-position.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; Float_Ads_Fixed_Position has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_float_ads_fixed_position
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/float-ads-fixed-position/float-ads-fixed-position.php:11

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (The widget configuration.), #2 (Display in font-end)
You can look at the official readme.txt

float-ads-fixed-position/float-ads-fixed-position.php 92% from 13 tests

"Float Ads Fixed Position" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 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
There were no executable files found in this plugin223 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121287
CSS10083
JavaScript172053

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.30KB6.78KB▼ 34.15%
screenshot-2.png115.48KB34.30KB▼ 70.30%