90% smdp-fly-button

Code Review | Fly Button

WordPress plugin Fly Button scored90%from 54 tests.

About plugin

  • Plugin page: smdp-fly-button
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Oct 5, 2021
  • Latest release: Oct 5, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: igomatos (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /378 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.22MB] [CPU: ▼6.37ms] Passed 4 tests

An overview of server-side resources used by Fly Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2145.14 ▲4.08
Dashboard /wp-admin3.52 ▲0.2247.40 ▼2.69
Posts /wp-admin/edit.php3.63 ▲0.2848.89 ▲2.25
Add New Post /wp-admin/post-new.php6.12 ▲0.2382.46 ▼24.05
Media Library /wp-admin/upload.php3.44 ▲0.2137.80 ▼1.00
SMDP Fly Button Settings /wp-admin/options-general.php?page=smdp_Fly_Button_settings3.4438.51

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fly Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13913.80 ▼0.559.16 ▲7.4941.01 ▼2.51
Dashboard /wp-admin2,203 ▲265.50 ▼0.0385.54 ▼1.0839.86 ▲3.02
Posts /wp-admin/edit.php2,090 ▼102.01 ▲0.0035.58 ▼2.1734.40 ▼2.55
Add New Post /wp-admin/post-new.php1,533 ▼14623.35 ▲1.11654.61 ▼33.9558.25 ▲4.55
Media Library /wp-admin/upload.php1,408 ▲84.24 ▲0.0698.43 ▼14.3544.87 ▼2.45
SMDP Fly Button Settings /wp-admin/options-general.php?page=smdp_Fly_Button_settings1,0833.1047.5426.90

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • smdp_Fly_Button_version
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (SMDP Fly Button Main Settings.) image missing
Please take inspiration from this readme.txt

smdp-fly-button/smdp-fly-button.php Passed 13 tests

The principal PHP file in "Fly Button" v. 1.0.0 is loaded by WordPress automatically on each request
44 characters long description:
Plugin for adding a fly button to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,032 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP9408428945
JavaScript516655
PO File18931
Markdown1001

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.41
Average class complexity21.00
▷ Minimum class complexity5.00
▷ Maximum class complexity61.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3794.87%
▷ Protected methods00.00%
▷ Private methods25.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin