90% sticky-ad-lightweight

Code Review | Sticky Ads LightWeight

WordPress plugin Sticky Ads LightWeight scored90%from 54 tests.

About plugin

  • Plugin page: sticky-ad-lightwe...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2023
  • Latest release: Aug 1, 2023
  • Number of updates: 4
  • Update frequency: every 50.7 days
  • Top authors: saurabhgtr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /873 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.34ms] Passed 4 tests

Server-side resources used by Sticky Ads LightWeight
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.83 ▲0.49
Dashboard /wp-admin3.34 ▲0.0347.32 ▼6.36
Posts /wp-admin/edit.php3.39 ▲0.0346.97 ▼4.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.16 ▼5.33
Media Library /wp-admin/upload.php3.26 ▲0.0337.27 ▼5.57
Sticky Ad Lightweight /wp-admin/options-general.php?page=sticky-ad-lightweight3.2336.95

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Sticky Ads LightWeight
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.031.62 ▼0.0743.12 ▲2.51
Dashboard /wp-admin2,199 ▲225.63 ▼0.0490.68 ▼1.2539.32 ▼1.46
Posts /wp-admin/edit.php2,104 ▲41.98 ▲0.0335.15 ▲0.5137.73 ▲0.60
Add New Post /wp-admin/post-new.php1,542 ▲1623.17 ▲0.09659.03 ▼87.3456.41 ▼12.93
Media Library /wp-admin/upload.php1,404 ▲44.11 ▼0.15114.81 ▲3.4146.58 ▼1.20
Sticky Ad Lightweight /wp-admin/options-general.php?page=sticky-ad-lightweight8952.1628.9334.09

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

sticky-ad-lightweight/sticky-ad-lightweight.php Passed 13 tests

This is the main PHP file of "Sticky Ads LightWeight" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
88 characters long description:
Start earning more with Sticky Ad Lightweight! Easily setup your ad code here and enjoy!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected148 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23534148

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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%