78% wptrove

Code Review | WPtrove

WordPress plugin WPtrove scored 78% from 54 tests.

About plugin

  • Plugin page: wptrove
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2022
  • Latest release: Mar 4, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: sproutient (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 189 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.39MB] [CPU: ▲1.86ms] Passed 4 tests

A check of server-side resources used by WPtrove
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4445.48 ▲2.68
Dashboard /wp-admin3.70 ▲0.4047.91 ▲0.60
Posts /wp-admin/edit.php3.75 ▲0.4051.49 ▼1.38
Add New Post /wp-admin/post-new.php7.41 ▲1.53104.51 ▲5.52
Media Library /wp-admin/upload.php3.56 ▲0.3338.82 ▲7.91

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WPtrove
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,981 ▲22415.20 ▲0.5325.65 ▲23.1141.23 ▼11.29
Dashboard /wp-admin2,218 ▲335.87 ▼0.16111.54 ▲2.9537.12 ▼6.44
Posts /wp-admin/edit.php2,120 ▲312.07 ▲0.0640.01 ▼3.2436.17 ▼2.15
Add New Post /wp-admin/post-new.php6,448 ▲4,91823.88 ▲1.05877.45 ▲219.4846.21 ▼21.44
Media Library /wp-admin/upload.php1,415 ▲274.33 ▲0.14115.12 ▼8.2350.11 ▼0.28

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wptrove/admin/partials/wptrove-admin-display.php
    • > /wp-content/plugins/wptrove/public/partials/wptrove-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wptrove/admin/partials/settings/testimonials.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wptrove/admin/partials/wptrove.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === wptrove === )
You can take inspiration from this readme.txt

wptrove/wptrove.php Passed 13 tests

"WPtrove" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected6,485 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript228499743,276
PHP326961,1321,866
Sass99501,117
JSON380223
CSS4103

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.35
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods89
▷ Static methods1516.85%
▷ Public methods8191.01%
▷ Protected methods00.00%
▷ Private methods88.99%
Functions11
▷ Named functions436.36%
▷ Anonymous functions763.64%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/css/src/owl/owl-video-play.png4.86KB2.74KB▼ 43.61%
admin/images/logo.png2.28KB0.93KB▼ 59.41%