83% envite-recent-post-grid

Code Review | Envite Recent Posts Grid

WordPress plugin Envite Recent Posts Grid scored 83% from 54 tests.

About plugin

  • Plugin page: envite-recent-pos...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 1, 2020
  • Latest release: May 30, 2023
  • Number of updates: 7
  • Update frequency: every 160.6 days
  • Top authors: envitethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 590 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.67ms] Passed 4 tests

Server-side resources used by Envite Recent Posts Grid
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.61 ▼2.13
Dashboard /wp-admin3.39 ▲0.0849.58 ▲2.67
Posts /wp-admin/edit.php3.50 ▲0.1547.31 ▼4.92
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.76 ▼9.60
Media Library /wp-admin/upload.php3.31 ▲0.0837.09 ▲1.98

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Envite Recent Posts Grid
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.38 ▼0.995.52 ▲3.7740.90 ▲3.21
Dashboard /wp-admin2,226 ▲385.88 ▲1.02106.78 ▼5.6739.28 ▼7.68
Posts /wp-admin/edit.php2,108 ▲192.01 ▲0.0240.00 ▼2.3839.35 ▲4.94
Add New Post /wp-admin/post-new.php1,545 ▲3123.19 ▲5.45598.27 ▼97.5347.80 ▼14.90
Media Library /wp-admin/upload.php1,402 ▲144.17 ▼0.0599.24 ▼12.2040.77 ▼7.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/envite-recent-post-grid/envite_recent_post_gird.php

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 on the user side

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 to be fixed: You can take inspiration from this readme.txt

envite-recent-post-grid/envite_recent_post_gird.php 85% from 13 tests

The main PHP script in "Envite Recent Posts Grid" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("envite-recent-post-grid.php" instead of "envite_recent_post_gird.php")

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
There were no executable files found in this plugin946 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6236115904
CSS110142

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.33
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods21
▷ Static methods14.76%
▷ Public methods1571.43%
▷ Protected methods29.52%
▷ Private methods419.05%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected