10% vnecategory

Code Review | VNEcategory

WordPress plugin VNEcategory scored 10% from 54 tests.

About plugin

  • Plugin page: vnecategory
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4.1
  • WordPress version: 5.8.1
  • First release: Dec 14, 2012
  • Latest release: Dec 14, 2012
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: drmen8x (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,563 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/vnecategory/vn_category.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; VNEcategory has a deprecated constructor

Server metrics [RAM: ▼1.83MB] [CPU: ▼194.16ms] Passed 4 tests

Analyzing server-side resources used by VNEcategory
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼0.925.23 ▼15.97
Dashboard /wp-admin1.82 ▼1.235.24 ▼36.72
Posts /wp-admin/edit.php1.82 ▼1.295.25 ▼40.47
Add New Post /wp-admin/post-new.php1.82 ▼3.614.58 ▼664.50
Media Library /wp-admin/upload.php1.82 ▼1.195.55 ▼34.96

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_vnecategory

Browser metrics Passed 4 tests

Checking browser requirements for VNEcategory
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲9015.95 ▲0.427.43 ▼2.8043.76 ▼1.67
Dashboard /wp-admin2,969 ▲355.88 ▼0.21142.31 ▼10.00109.20 ▼6.70
Posts /wp-admin/edit.php2,738 ▼12.70 ▲0.0264.24 ▼1.7087.75 ▼9.10
Add New Post /wp-admin/post-new.php1,500 ▼17218.85 ▲0.06355.64 ▼25.88109.83 ▲0.19
Media Library /wp-admin/upload.php1,809 ▲25.04 ▲0.02149.65 ▼9.99119.20 ▼1.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/vnecategory/vn_category.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; VNEcategory has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_vnecategory

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vnecategory/vn_category.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Categories structure), #2 (Widget configuration), #3 (Display in fronend)
You can look at the official readme.txt

vnecategory/vn_category.php 92% from 13 tests

The main PHP file in "VNEcategory" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vnecategory.php" instead of "vn_category.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin234 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12922165
CSS12069

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png21.02KB10.36KB▼ 50.70%
screenshot-2.png11.32KB6.36KB▼ 43.86%
screenshot-3.png57.04KB20.15KB▼ 64.67%