WordPress plugin scored83%from 54 tests.

About plugin

  • Plugin page: wha-elementor-cou...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Jul 27, 2020
  • Latest release: Jul 27, 2020
  • Number of updates: 10
  • Update frequency: every 0.2 days
  • Top authors: webhelpagency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /669 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.00MB] [CPU: ▼9.33ms] Passed 4 tests

Analyzing server-side resources used by
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.11 ▼21.71
Dashboard /wp-admin3.31 ▲0.0150.42 ▼5.16
Posts /wp-admin/edit.php3.36 ▲0.0050.33 ▼0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.24 ▼3.51
Media Library /wp-admin/upload.php3.23 ▲0.0032.25 ▼6.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 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 usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲2014.35 ▲0.072.12 ▼0.1843.01 ▼2.10
Dashboard /wp-admin2,209 ▲325.54 ▼0.1390.21 ▼7.8540.90 ▼2.84
Posts /wp-admin/edit.php2,120 ▲202.03 ▼0.0442.13 ▲1.9335.43 ▼1.13
Add New Post /wp-admin/post-new.php1,549 ▲2018.24 ▼4.63626.49 ▲28.1774.85 ▲24.40
Media Library /wp-admin/upload.php1,414 ▲114.22 ▲0.0997.47 ▼8.7145.17 ▼1.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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)
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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WHA_Elementor\\add_action() in wp-content/plugins/wha-elementor-counter-up/inc/elementor/plugin.php:83
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wha-elementor-counter-up/wha-elementor-counter-up.php:37

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #4 (An example of the appearance of the Counter widget)
The official readme.txt might help

wha-elementor-counter-up/wha-elementor-counter-up.php 85% from 13 tests

"" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,718 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP83523121,803
JavaScript2730632
CSS2474283

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods40
▷ Static methods12.50%
▷ Public methods2562.50%
▷ Protected methods1435.00%
▷ Private methods12.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.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
3 PNG files occupy 0.17MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/screenshot-3.png74.28KB0.00KB▼ 100.00%
images/screenshot-1.png44.60KB22.60KB▼ 49.32%
(invalid) images/screenshot-2.png59.73KB0.00KB▼ 100.00%