89% va-term-latest-posts-widget

Code Review | VA Term Latest Posts Widget

WordPress plugin VA Term Latest Posts Widget scored89%from 54 tests.

About plugin

  • Plugin page: va-term-latest-po...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2015
  • Latest release: Mar 1, 2015
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: kuck1u (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /860 total downloads


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
This plugin's installer ran successfully

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

A check of server-side resources used by VA Term Latest Posts Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0632.77 ▼9.87
Dashboard /wp-admin3.36 ▲0.0649.11 ▲0.49
Posts /wp-admin/edit.php3.41 ▲0.0546.71 ▼2.11
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.72 ▼5.92
Media Library /wp-admin/upload.php3.29 ▲0.0537.21 ▲1.89

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by VA Term Latest Posts Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.151.75 ▼0.0841.80 ▼4.51
Dashboard /wp-admin2,209 ▲244.86 ▼0.02102.64 ▼5.5040.74 ▼4.31
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0139.61 ▲3.2933.94 ▲0.91
Add New Post /wp-admin/post-new.php1,533 ▲1423.27 ▲0.21611.97 ▼157.2957.18 ▲5.37
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0194.32 ▼20.3540.99 ▼6.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_va-term-latest-posts
    • 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 | 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: recent posts, widget, posts, latest posts, sidebar...

va-term-latest-posts-widget/va-term-latest-posts.php 77% from 13 tests

The main PHP script in "VA Term Latest Posts Widget" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("va-term-latest-posts-widget.php" instead of "va-term-latest-posts.php")
  • Domain Path: The domain path folder was not found ("/langs")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin251 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
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods444.44%
▷ Protected methods00.00%
▷ Private methods555.56%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.05MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png17.73KB16.11KB▼ 9.14%
screenshot-1.png30.34KB29.85KB▼ 1.62%