84% wp-violet

Code Review | Violet Custom Post Meta

WordPress plugin Violet Custom Post Meta scored84%from 54 tests.

About plugin

  • Plugin page: wp-violet
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 6, 2018
  • Latest release: Mar 6, 2018
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: serakib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.31MB] [CPU: ▲0.92ms] Passed 4 tests

This is a short check of server-side resources used by Violet Custom Post Meta
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3044.98 ▲2.87
Dashboard /wp-admin3.66 ▲0.3556.32 ▲6.50
Posts /wp-admin/edit.php3.73 ▲0.3856.75 ▲4.42
Add New Post /wp-admin/post-new.php6.20 ▲0.3192.25 ▼8.98
Media Library /wp-admin/upload.php3.50 ▲0.2738.44 ▲5.36
Add New Portfolio /wp-admin/post-new.php?post_type=portfolio3.6155.72
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio3.5243.34
Services /wp-admin/edit.php?post_type=services3.5944.35
Testimonials /wp-admin/edit.php?post_type=testimonial3.5944.66
Add New Skill /wp-admin/post-new.php?post_type=skill3.6450.29
Members /wp-admin/edit.php?post_type=team3.5954.45
Portfolio /wp-admin/edit.php?post_type=portfolio3.5944.66
My skills /wp-admin/edit.php?post_type=skill3.5943.26
Add New Member /wp-admin/post-new.php?post_type=team3.6150.06
Partners /wp-admin/edit.php?post_type=partner3.5943.35

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Violet Custom Post Meta
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,133 ▲37214.80 ▲0.212.02 ▼0.2242.50 ▼3.57
Dashboard /wp-admin2,524 ▲3446.57 ▲0.89124.51 ▲35.8340.08 ▼4.67
Posts /wp-admin/edit.php2,449 ▲3493.70 ▲1.6751.07 ▲15.6233.75 ▼3.74
Add New Post /wp-admin/post-new.php1,685 ▲15923.42 ▼0.17670.84 ▲6.5138.53 ▼16.43
Media Library /wp-admin/upload.php1,589 ▲1924.53 ▲0.36105.87 ▼1.8347.14 ▲0.08
Add New Portfolio /wp-admin/post-new.php?post_type=portfolio1,9863.9569.9938.18
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio1,6293.4443.3931.70
Services /wp-admin/edit.php?post_type=services1,4283.7445.3027.66
Testimonials /wp-admin/edit.php?post_type=testimonial1,4233.6045.5927.23
Add New Skill /wp-admin/post-new.php?post_type=skill2,4677.99174.4959.68
Members /wp-admin/edit.php?post_type=team1,4223.6044.1727.55
Portfolio /wp-admin/edit.php?post_type=portfolio1,4173.5849.9327.72
My skills /wp-admin/edit.php?post_type=skill1,4233.5946.8727.11
Add New Member /wp-admin/post-new.php?post_type=team2,0894.0570.4634.41
Partners /wp-admin/edit.php?post_type=partner1,4303.6146.0631.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=partner
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,moxiejs,plupload,jquery-ui-tooltip&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-violet/admin/js/vcpm-admin.js?ver=1.0.0:16:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,moxiejs,plupload,jquery-ui-tooltip&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,moxiejs,plupload,jquery-ui-tooltip&ver=6.3.1:2:27292)" undefined
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=partner
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,moxiejs,plupload,jquery-ui-tooltip&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
    • > GET request to /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-tooltip&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-violet/admin/js/vcpm-admin.js?ver=1.0.0:16:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-tooltip&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-tooltip&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-tooltip&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("www.rakibhossain.cf")
The official readme.txt might help

wp-violet/wp-violet.php 92% from 13 tests

Analyzing the main PHP file in "Violet Custom Post Meta" version 1.0.0
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,036 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12153446795
CSS2111167
JavaScript2221574

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.22
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods31
▷ Static methods39.68%
▷ Public methods2683.87%
▷ Protected methods13.23%
▷ Private methods412.90%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin