94% seo-advanced-custom-fields-analyzer

Code Review | SEO Advanced Custom Fields Analyzer

WordPress plugin SEO Advanced Custom Fields Analyzer scored 94% from 54 tests.

About plugin

  • Plugin page: seo-advanced-cust...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Apr 11, 2016
  • Latest release: Apr 12, 2016
  • Number of updates: 2
  • Update frequency: every 7.0 days
  • Top authors: borislutskovsky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 2,158 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼143.38ms] Passed 4 tests

An overview of server-side resources used by SEO Advanced Custom Fields Analyzer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0036.04 ▲2.18
Dashboard /wp-admin3.06 ▲0.0148.27 ▲6.28
Posts /wp-admin/edit.php3.11 ▲0.0146.22 ▼3.42
Add New Post /wp-admin/post-new.php5.42 ▼0.0197.99 ▼571.39
Media Library /wp-admin/upload.php3.00 ▲0.0034.69 ▼0.90

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by SEO Advanced Custom Fields Analyzer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.78 ▼0.127.95 ▼0.4949.59 ▼1.43
Dashboard /wp-admin2,970 ▲335.86 ▼0.10150.94 ▲2.01111.33 ▼1.58
Posts /wp-admin/edit.php2,736 ▼32.70 ▼0.0069.91 ▼4.4698.00 ▲0.74
Add New Post /wp-admin/post-new.php1,498 ▼18518.84 ▲0.11392.68 ▼2.27112.97 ▼1.53
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.01160.58 ▼4.25130.91 ▲9.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-advanced-custom-fields-analyzer/wp-seo-custom-fields.php:17

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 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 to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

seo-advanced-custom-fields-analyzer/wp-seo-custom-fields.php 92% from 13 tests

Analyzing the main PHP file in "SEO Advanced Custom Fields Analyzer" version 1.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("seo-advanced-custom-fields-analyzer.php" instead of "wp-seo-custom-fields.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin32 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14925
PHP1287

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin