68% meta-ranker

Code Review | Meta Ranker - Rank your list items, Create Polls powered by Crypto Wallet Connection for Free

WordPress plugin Meta Ranker - Rank your list items, Create Polls powered by Crypto Wallet Connection for Free scored68%from 54 tests.

About plugin

  • Plugin page: meta-ranker
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2023
  • Latest release: Sep 20, 2023
  • Number of updates: 26
  • Update frequency: every 6.2 days
  • Top authors: djter3a3 (53.85%)blackworks1 (26.92%)nabeel323 (26.92%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /831 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.86MB] [CPU: ▲18.59ms] Passed 4 tests

A check of server-side resources used by Meta Ranker - Rank your list items, Create Polls powered by Crypto Wallet Connection for Free
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.32 ▲1.8658.76 ▲21.18
Dashboard /wp-admin5.16 ▲1.8670.72 ▲24.50
Posts /wp-admin/edit.php5.20 ▲1.8467.62 ▲24.66
Add New Post /wp-admin/post-new.php7.82 ▲1.9499.92 ▲4.01
Media Library /wp-admin/upload.php5.09 ▲1.8658.37 ▲26.43
Votes Log /wp-admin/edit.php?post_type=meta-ranker&page=meta-ranker-logs5.0957.34
About /wp-admin/edit.php?post_type=meta-ranker&page=meta-ranker-settings5.0967.68
All List /wp-admin/edit.php?post_type=meta-ranker5.1560.66
Copy Styles /wp-admin/edit.php?post_type=meta-ranker&page=copy-styles5.0958.49
Add New /wp-admin/post-new.php?post_type=meta-ranker5.1668.30

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 246 new files
Database: 2 new tables, 9 new options
New tables
meta_wallet_connections
mrv_rank_logs
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
mrv_option_settings
mrv_quick_setup
theysaidso_admin_options
db_upgraded
mrv_rank_logs_db_version
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Meta Ranker - Rank your list items, Create Polls powered by Crypto Wallet Connection for Free
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10214.73 ▲0.531.69 ▲0.0433.18 ▼10.09
Dashboard /wp-admin2,266 ▲855.53 ▼0.2084.31 ▼16.6541.40 ▼2.69
Posts /wp-admin/edit.php2,171 ▲922.02 ▲0.0138.91 ▲2.8334.60 ▼0.77
Add New Post /wp-admin/post-new.php1,577 ▲4922.94 ▼0.23598.41 ▼19.0263.79 ▲16.15
Media Library /wp-admin/upload.php1,471 ▲714.28 ▲0.0899.41 ▼0.5847.02 ▲2.87
Votes Log /wp-admin/edit.php?post_type=meta-ranker&page=meta-ranker-logs1,2203.2845.4526.82
About /wp-admin/edit.php?post_type=meta-ranker&page=meta-ranker-settings1,4183.5761.5178.52
All List /wp-admin/edit.php?post_type=meta-ranker1,3543.6258.0830.67
Copy Styles /wp-admin/edit.php?post_type=meta-ranker&page=copy-styles1,1184.1154.8129.31
Add New /wp-admin/post-new.php?post_type=meta-ranker1,7064.1885.2438.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • mrv_rank_logs
    • meta_wallet_connections
  • Zombie WordPress options were found after uninstall: 9 options
    • mrv_rank_logs_db_version
    • db_upgraded
    • theysaidso_admin_options
    • mrv_option_settings
    • widget_recent-comments
    • can_compress_scripts
    • mrv_quick_setup
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/meta-ranker/admin/mrv-post-type-settings-ranker.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/meta-ranker/admin/table-ranker/mrv-list-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-ranker/includes/plugin-activation/hooks.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-ranker/includes/functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-ranker/admin/mrv-copy-styles.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-ranker/includes/plugin-activation/class-license-manager.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/meta-ranker/includes/single-meta-ranker-template.php:13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/meta-ranker/admin/table-ranker/mrv-list-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-ranker/includes/plugin-activation/activate_site.php:55
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/meta-ranker/admin/table-ranker/mrv-list-table.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: ranker, crypto, cryptocurrency, list, bitcoin

meta-ranker/meta-ranker.php 85% from 13 tests

This is the main PHP file of "Meta Ranker - Rank your list items, Create Polls powered by Crypto Wallet Connection for Free" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
Success! There were no dangerous files found in this plugin44,878 lines of code in 179 files:
LanguageFilesBlank linesComment linesLines of code
PHP1104,1062,33819,624
JavaScript111,3665517,217
PO File203,1983,5916,500
Sass1697035,674
CSS75145485,532
Markdown2630256
JSON20042
SVG110133

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity25.42
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity6.70
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes77
▷ Abstract classes22.60%
▷ Concrete classes7597.40%
▷ Final classes45.33%
Methods330
▷ Static methods7923.94%
▷ Public methods31796.06%
▷ Protected methods00.00%
▷ Private methods133.94%
Functions47
▷ Named functions4697.87%
▷ Anonymous functions12.13%
Constants11
▷ Global constants654.55%
▷ Class constants545.45%
▷ Public constants240.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 1.34MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/images/Binance-wallet.png20.01KB7.73KB▼ 61.38%
assets/images/images/default-logo.png0.59KB0.53KB▼ 9.44%
assets/images/up5.png1.72KB1.44KB▼ 16.17%
assets/images/images/cryptodonation-logo.png13.90KB6.21KB▼ 55.33%
assets/images/up-down-7.png1.16KB0.94KB▼ 18.82%