89% mezar-quick-view

Code Review | Mezar Quick View

WordPress plugin Mezar Quick View scored89%from 54 tests.

About plugin

  • Plugin page: mezar-quick-view
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.3-5.7.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2021
  • Latest release: Jun 18, 2021
  • Number of updates: 20
  • Update frequency: every 0.8 days
  • Top authors: mezar97 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /352 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 gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.03ms] Passed 4 tests

Server-side resources used by Mezar Quick View
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.93 ▲0.62
Dashboard /wp-admin3.42 ▲0.1249.48 ▼0.30
Posts /wp-admin/edit.php3.47 ▲0.1243.46 ▼0.36
Add New Post /wp-admin/post-new.php6.00 ▲0.1278.65 ▼8.08
Media Library /wp-admin/upload.php3.34 ▲0.1237.76 ▲4.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 64 new options
New WordPress options
mezar_qv_draggable
mezar_qv_button_detail_text
mezar_qv_pagination_preloader_color
mezar_qv_gallery_arrow
mezar_qv_bbg_color_hover
mezar_qv_preloader_size
mezar_qv_bg_color
mezar_qv_pagination
mezar_qv_rtl
mezar_qv_button_font_size
...

Browser metrics Passed 4 tests

An overview of browser requirements for Mezar Quick View
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.41 ▲0.051.91 ▼0.0444.52 ▼1.47
Dashboard /wp-admin2,217 ▲265.86 ▲0.98109.97 ▼5.7343.40 ▼3.21
Posts /wp-admin/edit.php2,097 ▲112.00 ▼0.0037.24 ▲1.1432.25 ▼3.95
Add New Post /wp-admin/post-new.php1,541 ▲823.31 ▲0.07640.16 ▼7.6252.82 ▲1.36
Media Library /wp-admin/upload.php1,393 ▲54.23 ▲0.02101.32 ▲0.9543.35 ▼1.20

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
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 | 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #3, #4, #5, #6, #7, #8, #9 in mezar-quick-view/assets to your readme.txt
  • Requires php: Version format is invalid
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

mezar-quick-view/mezar-quick-view.php 92% from 13 tests

"Mezar Quick View" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin7,953 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS5157493,572
SVG2102,685
PHP19344831,488
JavaScript43219208

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.34
Average class complexity4.28
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods45
▷ Static methods36.67%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected