73% akl-webhost-post-widget

Code Review | Akl Webhost Post Widget

WordPress plugin Akl Webhost Post Widget scored73%from 54 tests.

About plugin

  • Plugin page: akl-webhost-post-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2017
  • Latest release: Aug 22, 2017
  • Number of updates: 30
  • Update frequency: every 0.1 days
  • Top authors: usamakhalid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,202 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Akl Webhost Post Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.11 ▼0.77
Dashboard /wp-admin3.32 ▲0.0244.47 ▼4.62
Posts /wp-admin/edit.php3.37 ▲0.0148.19 ▼0.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.20 ▲5.88
Media Library /wp-admin/upload.php3.24 ▲0.0130.27 ▼1.99

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Akl Webhost Post Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.121.82 ▲0.2142.29 ▼0.05
Dashboard /wp-admin2,206 ▲325.83 ▼0.08100.81 ▼3.8137.60 ▼10.75
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0338.87 ▲1.2435.84 ▲3.50
Add New Post /wp-admin/post-new.php1,538 ▲523.25 ▼0.10599.49 ▼101.3366.50 ▲6.18
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.02103.39 ▲2.0643.92 ▼1.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_akl_post_widget
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_akl_post_widget
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/akl-webhost-post-widget/Akl_Post_Widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (First of all upload that widget through add new widget area. '(/assets/Screenshot-1.png)'), #2 (Then activate that widget from installed widget section or activate that widget when you upload that widget. '(/assets/Screenshot-2.png)'), #3 (Then drag that widget from options available in widgets tabs and drop that widget to the sidebar. '(/assets/Screenshot-3.png)'), #4 (Then open your posts page and then you will see your posts. '(/assets/Screenshot-4.png)')
  • License uri: Invalid URI ("none")
You can take inspiration from this readme.txt

akl-webhost-post-widget/Akl_Post_Widget.php 85% from 13 tests

The entry point to "Akl Webhost Post Widget" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 271 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("akl-webhost-post-widget.php" instead of "Akl_Post_Widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/question_mark.png3.57KB2.13KB▼ 40.24%