90% sticky-postbox

Code Review | Sticky Postbox

WordPress plugin Sticky Postbox scored90%from 54 tests.

About plugin

  • Plugin page: sticky-postbox
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2022
  • Latest release: Jul 13, 2022
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: enrico.sorcinelli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /511 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Sticky Postbox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.18 ▼6.39
Dashboard /wp-admin3.32 ▲0.0246.29 ▼1.85
Posts /wp-admin/edit.php3.37 ▲0.0146.29 ▼4.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.05 ▼1.12
Media Library /wp-admin/upload.php3.24 ▲0.0134.50 ▲0.83

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Sticky Postbox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.38 ▼1.001.69 ▼0.1443.72 ▼2.16
Dashboard /wp-admin2,226 ▲385.88 ▲0.98112.81 ▼8.8342.71 ▼0.74
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0039.61 ▼0.3835.50 ▲3.27
Add New Post /wp-admin/post-new.php1,530 ▲1118.32 ▼4.87611.83 ▼4.0863.52 ▲9.06
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0196.89 ▼0.1744.25 ▲0.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: options, classic editor, post, dashboard, sticky...

sticky-postbox/sticky-postbox.php Passed 13 tests

"Sticky Postbox" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
A WordPress plugin that allow to sticky administration postboxes.

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
Success! There were no dangerous files found in this plugin260 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP348111160
JavaScript2242359
CSS27241

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 are no PNG files in this plugin