83% devvn-tet-holiday

Code Review | DevVN - Trang trí Tết Việt Nam

WordPress plugin DevVN - Trang trí Tết Việt Nam scored83%from 54 tests.

About plugin

  • Plugin page: devvn-tet-holiday
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2021
  • Latest release: Jan 12, 2023
  • Number of updates: 7
  • Update frequency: every 54.3 days
  • Top authors: levantoan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.18ms] Passed 4 tests

Analyzing server-side resources used by DevVN - Trang trí Tết Việt Nam
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.38 ▼1.54
Dashboard /wp-admin3.40 ▲0.0948.58 ▼1.87
Posts /wp-admin/edit.php3.45 ▲0.0946.67 ▼3.21
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.06 ▼14.09
Media Library /wp-admin/upload.php3.32 ▲0.0936.25 ▲0.56
Trang trí Tết /wp-admin/options-general.php?page=setting-tet-holiday3.3134.85

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DevVN - Trang trí Tết Việt Nam
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,793 ▲1,04713.53 ▼1.2812.54 ▲10.6658.01 ▲15.01
Dashboard /wp-admin2,213 ▲254.84 ▼0.04106.36 ▼2.7642.42 ▼2.31
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0239.26 ▲0.5337.31 ▲2.77
Add New Post /wp-admin/post-new.php1,536 ▲1523.06 ▼0.14663.74 ▼13.0359.01 ▼5.56
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0697.21 ▼6.0142.05 ▼14.42
Trang trí Tết /wp-admin/options-general.php?page=setting-tet-holiday1,3423.1346.03115.23

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/devvn-tet-holiday/devvn-tet-holiday.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt might help

devvn-tet-holiday/devvn-tet-holiday.php 92% from 13 tests

The entry point to "DevVN - Trang trí Tết Việt Nam" version 1.0.3 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 165 characters long)

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
Success! There were no dangerous files found in this plugin602 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13316602

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 1.72MB with 1.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png386.18KB106.37KB▼ 72.46%
screenshot-2.png103.10KB108.48KB0.00%
images/bottom-2.png200.74KB53.63KB▼ 73.28%
images/right-2.png97.19KB22.48KB▼ 76.87%
images/left-5.png101.18KB24.53KB▼ 75.76%