93% appwidget

Code Review | appwidget

WordPress plugin appwidget scored 93% from 54 tests.

About plugin

  • Plugin page: appwidget
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Aug 22, 2012
  • Latest release: Aug 24, 2012
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: dcoupe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,036 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by appwidget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.11 ▲11.33
Dashboard /wp-admin3.07 ▲0.0142.21 ▲3.66
Posts /wp-admin/edit.php3.12 ▲0.0145.87 ▲0.12
Add New Post /wp-admin/post-new.php5.43 ▲0.0090.93 ▼552.47
Media Library /wp-admin/upload.php3.01 ▲0.0035.09 ▼4.20

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for appwidget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.18 ▲0.219.89 ▲1.7945.20 ▼1.80
Dashboard /wp-admin2,967 ▲365.90 ▼0.08137.32 ▼5.70121.18 ▲10.67
Posts /wp-admin/edit.php2,736 ▼32.70 ▲0.0065.20 ▼1.0390.86 ▼0.15
Add New Post /wp-admin/post-new.php1,672 ▼018.89 ▲0.07374.29 ▲19.93112.16 ▲1.91
Media Library /wp-admin/upload.php1,810 ▼05.02 ▲0.02144.16 ▲0.52120.72 ▼5.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/appwidget/tinymce/appwidget_dialog.php
    • > /wp-content/plugins/appwidget/appwidget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (This is tinymce editor function keys.), #2 (This is a search application page.), #3 (This is appwidget filter Android application interface.), #4 (This is how the appwidget plugin looks.)
  • Plugin Name: Please specify the plugin name on the first line ( === appwidget === )
  • Requires at least: Version format is invalid
You can take inspiration from this readme.txt

appwidget/appwidget.php Passed 13 tests

The primary PHP file in "appwidget" version 0.3 is used by WordPress to initiate all plugin functionality
72 characters long description:
With appwidget you can easily share your Android app on your blog posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected237 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31130195
JavaScript26342

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
5 PNG files occupy 0.42MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tinymce/images/appchina.png1.71KB1.01KB▼ 40.63%
screenshot-2.png180.00KB55.00KB▼ 69.44%
screenshot-4.png96.54KB31.42KB▼ 67.46%
screenshot-3.png103.03KB30.56KB▼ 70.34%
(invalid) screenshot-1.png43.83KB0.00KB▼ 100.00%