78% motiontactic-seopress-acf-content-finder

Code Review | Custom Field Content Finder for SEOPress and ACF

WordPress plugin Custom Field Content Finder for SEOPress and ACF scored78%from 54 tests.

About plugin

  • Plugin page: motiontactic-seop...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 4, 2020
  • Latest release: Sep 4, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: motiontactic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.20ms] Passed 4 tests

Server-side resources used by Custom Field Content Finder for SEOPress and ACF
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.17 ▼2.93
Dashboard /wp-admin3.32 ▲0.0244.12 ▼6.57
Posts /wp-admin/edit.php3.37 ▲0.0249.85 ▲4.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.63 ▼1.99
Media Library /wp-admin/upload.php3.25 ▲0.0236.65 ▲2.69
SEOPress ACF Content /wp-admin/tools.php?page=seopress-acf-content3.1931.36

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Custom Field Content Finder for SEOPress and ACF: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.34 ▼0.011.61 ▼0.1937.98 ▼2.36
Dashboard /wp-admin2,199 ▲195.64 ▲0.0690.96 ▲1.4636.96 ▼2.13
Posts /wp-admin/edit.php2,104 ▲72.02 ▲0.0740.68 ▲4.4936.87 ▲6.43
Add New Post /wp-admin/post-new.php1,551 ▲2518.18 ▼4.78629.83 ▼79.6872.28 ▲19.70
Media Library /wp-admin/upload.php1,401 ▼24.24 ▲0.0398.46 ▼2.3642.10 ▼4.65
SEOPress ACF Content /wp-admin/tools.php?page=seopress-acf-content7832.0223.9628.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=seopress-acf-content
    • > Notice in wp-content/plugins/motiontactic-seopress-acf-content-finder/seopress-acf.php+76
    Undefined index: post_id

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/motiontactic-seopress-acf-content-finder/seopress-acf.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

motiontactic-seopress-acf-content-finder/seopress-acf.php 92% from 13 tests

This is the main PHP file of "Custom Field Content Finder for SEOPress and ACF" version 1.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:
  • Main file name: Name the main plugin file the same as the plugin slug ("motiontactic-seopress-acf-content-finder.php" instead of "seopress-acf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114879

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin