89% all-in-one-wp-sticky-anything

Code Review | All-in-One WP Sticky Anything

WordPress plugin All-in-One WP Sticky Anything scored89%from 54 tests.

About plugin

  • Plugin page: all-in-one-wp-sti...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Feb 16, 2022
  • Latest release: Feb 16, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: monzuralam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,715 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.00ms] Passed 4 tests

Analyzing server-side resources used by All-in-One WP Sticky Anything
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.02 ▼4.23
Dashboard /wp-admin3.31 ▲0.0143.17 ▼1.66
Posts /wp-admin/edit.php3.36 ▲0.0045.76 ▼1.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.48 ▼12.67
Media Library /wp-admin/upload.php3.23 ▲0.0033.42 ▲2.26
All-in-One WP Sticky Anything /wp-admin/options-general.php?page=all-in-one-wp-sticky-anything3.2029.51

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

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

Browser metrics Passed 4 tests

All-in-One WP Sticky Anything: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲15713.64 ▼0.717.45 ▲4.9940.22 ▼12.16
Dashboard /wp-admin2,212 ▲245.88 ▲0.98106.35 ▼4.8637.12 ▼6.04
Posts /wp-admin/edit.php2,092 ▲62.04 ▲0.0438.89 ▲2.3034.44 ▲2.23
Add New Post /wp-admin/post-new.php1,533 ▲1922.96 ▲5.32658.88 ▲56.0574.66 ▲19.36
Media Library /wp-admin/upload.php1,397 ▲94.11 ▼0.0998.40 ▲2.9741.10 ▼2.52
All-in-One WP Sticky Anything /wp-admin/options-general.php?page=all-in-one-wp-sticky-anything8132.0323.0531.25

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

all-in-one-wp-sticky-anything/all-in-one-wp-sticky-anything.php 85% from 13 tests

The principal PHP file in "All-in-One WP Sticky Anything" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "7.0")
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin85 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2102869
JavaScript20013
CSS1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin