90% yappa-widget

Code Review | Yappa Widget

WordPress plugin Yappa Widget scored 90% from 54 tests.

About plugin

  • Plugin page: yappa-widget
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2019
  • Latest release: Jul 23, 2019
  • Number of updates: 15
  • Update frequency: every 10.1 days
  • Top authors: yappaworld (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active / 1,579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Yappa Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.19 ▼6.23
Dashboard /wp-admin3.31 ▲0.0144.82 ▼2.85
Posts /wp-admin/edit.php3.37 ▲0.0146.65 ▼2.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.41 ▼4.68
Media Library /wp-admin/upload.php3.24 ▲0.0133.30 ▲1.74

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Yappa Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.52 ▼1.131.96 ▼0.2941.54 ▼2.45
Dashboard /wp-admin2,222 ▲375.85 ▲1.01107.99 ▼7.2537.52 ▼5.79
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0135.55 ▼6.1132.77 ▼2.78
Add New Post /wp-admin/post-new.php1,550 ▲1323.13 ▼0.13674.64 ▲28.7462.58 ▲12.49
Media Library /wp-admin/upload.php1,398 ▲134.20 ▼0.0694.89 ▼8.9240.92 ▼2.35

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: spam, widget, community, comments, notification...

yappa-widget/yappa-widget.php Passed 13 tests

This is the main PHP file of "Yappa Widget" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Plugins that inserts the Yappa Widget into posts or pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin221 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP26714153
JavaScript14027
CSS17026
Markdown17015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity9.50
▷ Minimum class complexity5.00
▷ Maximum class complexity14.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin