83% moortak-ephe

Code Review | Moortak portfolio hover effect for Elementor

WordPress plugin Moortak portfolio hover effect for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: moortak-ephe
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 25, 2020
  • Latest release: Aug 6, 2020
  • Number of updates: 15
  • Update frequency: every 0.9 days
  • Top authors: moortak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.29ms] Passed 4 tests

An overview of server-side resources used by Moortak portfolio hover effect for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0848.65 ▲3.84
Dashboard /wp-admin3.38 ▲0.0751.22 ▼2.02
Posts /wp-admin/edit.php3.43 ▲0.0753.83 ▲1.71
Add New Post /wp-admin/post-new.php6.03 ▲0.1495.54 ▼16.68
Media Library /wp-admin/upload.php3.30 ▲0.0742.81 ▲4.63
Add New /wp-admin/post-new.php?post_type=portfolio6.0285.66
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio3.2938.47
All Portfolios /wp-admin/edit.php?post_type=portfolio3.3440.74
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio3.2932.75

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Moortak portfolio hover effect for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.34 ▼0.241.74 ▼0.0145.55 ▲1.98
Dashboard /wp-admin2,233 ▲555.57 ▼0.1791.38 ▼17.2741.25 ▼3.87
Posts /wp-admin/edit.php2,135 ▲352.00 ▲0.0334.88 ▼4.2635.08 ▲1.23
Add New Post /wp-admin/post-new.php1,555 ▲2923.31 ▲0.20741.49 ▲70.6562.89 ▼9.81
Media Library /wp-admin/upload.php1,435 ▲354.26 ▲0.12114.88 ▲6.9446.83 ▲0.87
Add New /wp-admin/post-new.php?post_type=portfolio6,21922.35896.6530.56
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio1,3062.1227.1231.97
All Portfolios /wp-admin/edit.php?post_type=portfolio1,1581.9831.6530.65
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio1,2782.1227.7030.77

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/moortak-ephe/moortak-ephe.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/moortak-ephe/includes/widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_type_exists() in wp-content/plugins/moortak-ephe/includes/post-type.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Elementor Editor view), #2 (query options), #3 (style options)
  • Requires php: Invalid version format
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

moortak-ephe/moortak-ephe.php Passed 13 tests

Analyzing the main PHP file in "Moortak portfolio hover effect for Elementor" version 2.0.1
57 characters long description:
uses for show your portfolios with a pretty hover effect.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected807 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31325544
PO File18791191
CSS1151172

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods233.33%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png46.03KB13.46KB▼ 70.76%
screenshot-1.png201.11KB77.51KB▼ 61.46%
screenshot-2.png16.84KB5.86KB▼ 65.22%