90% smntcs-wapuu-widget

Code Review | SMNTCS Wapuu Widget

WordPress plugin SMNTCS Wapuu Widget scored90%from 54 tests.

About plugin

  • Plugin page: smntcs-wapuu-widget
  • Plugin version: 1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2017
  • Latest release: Dec 3, 2022
  • Number of updates: 20
  • Update frequency: every 92.2 days
  • Top authors: nielslange (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼11.18ms] Passed 4 tests

Server-side resources used by SMNTCS Wapuu Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0635.94 ▼3.09
Dashboard /wp-admin3.37 ▲0.0245.10 ▼18.36
Posts /wp-admin/edit.php3.42 ▲0.0649.08 ▼7.72
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.43 ▼14.62
Media Library /wp-admin/upload.php3.29 ▲0.0633.45 ▼4.02

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

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

Browser metrics Passed 4 tests

Checking browser requirements for SMNTCS Wapuu Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.37 ▼0.231.65 ▲0.0240.30 ▲1.42
Dashboard /wp-admin2,195 ▲245.73 ▲0.1591.01 ▼2.8638.11 ▼3.93
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0539.62 ▲3.9935.20 ▲0.41
Add New Post /wp-admin/post-new.php1,528 ▲223.21 ▼0.41687.15 ▼37.0056.10 ▲0.73
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.0293.79 ▼4.7945.16 ▲1.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_smntcs_wapuu_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: wapuu, widget, sidebar

smntcs-wapuu-widget/smntcs-wapuu-widget.php Passed 13 tests

The principal PHP file in "SMNTCS Wapuu Widget" v. 1.8 is loaded by WordPress automatically on each request
36 characters long description:
Sidebar widget to show random Wapuu.

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
Everything looks great! No dangerous files found in this plugin6,443 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON3005,935
PHP12660403
XML1131451
Markdown125037
YAML1008
CSS1005
JavaScript1024

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
334 PNG files occupy 13.28MB with 8.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/WapuuPepa-230x253.png29.12KB14.51KB▼ 50.16%
images/Habu-230x198.png30.32KB11.52KB▼ 62.01%
images/wapuubee-230x222.png37.74KB12.90KB▼ 65.83%
images/wapuu-logo-toque-230x361.png41.05KB13.96KB▼ 65.99%
images/ghostbuster_wapuu-230x260.png48.83KB17.14KB▼ 64.89%