77% cf7-shortcode-finder

Code Review | CF7 Shortcode Finder

WordPress plugin CF7 Shortcode Finder scored77%from 54 tests.

About plugin

  • Plugin page: cf7-shortcode-finder
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 20, 2019
  • Latest release: Apr 25, 2020
  • Number of updates: 8
  • Update frequency: every 50.5 days
  • Top authors: hk1993 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /967 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by CF7 Shortcode Finder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.42 ▼2.32
Dashboard /wp-admin3.37 ▲0.0648.79 ▼2.03
Posts /wp-admin/edit.php3.48 ▲0.1249.37 ▲0.97
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.78 ▼19.67
Media Library /wp-admin/upload.php3.29 ▲0.0638.71 ▲1.86
Shortcode pages /wp-admin/admin.php?page=short-code-pages3.2631.73

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for CF7 Shortcode Finder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲17713.67 ▼0.475.31 ▲3.3441.54 ▼6.01
Dashboard /wp-admin2,213 ▲255.79 ▲0.91108.02 ▼5.4639.15 ▼6.36
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0044.72 ▲6.6132.92 ▼6.99
Add New Post /wp-admin/post-new.php1,518 ▼522.12 ▼1.04652.58 ▼25.8998.57 ▲19.77
Media Library /wp-admin/upload.php1,386 ▲14.23 ▼0.03106.02 ▼7.5145.57 ▲1.19
Shortcode pages /wp-admin/admin.php?page=short-code-pages7692.0525.1028.22

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=short-code-pages
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+206
    Trying to get property 'ID' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=short-code-pages
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=short-code-pages
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=short-code-pages
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cf7-shortcode-finder/public/partials/contact-form-shortcode-finder-public-display.php
    • > /wp-content/plugins/cf7-shortcode-finder/admin/partials/contact-form-shortcode-finder-admin-display.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)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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:
  • Screenshots: Please describe screenshot #0 in cf7-shortcode-finder/assets to your readme.txt
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

cf7-shortcode-finder/contact-form-shortcode-finder.php 85% from 13 tests

"CF7 Shortcode Finder" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-shortcode-finder.php" instead of "contact-form-shortcode-finder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin307 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12114535257
CSS211844
JavaScript24546

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.14
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.32
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin