94% wp-seo-acf-content-analysis

Code Review | WordPress SEO ACF Content Analysis

WordPress plugin WordPress SEO ACF Content Analysis scored 94% from 54 tests.

About plugin

  • Plugin page: wp-seo-acf-conten...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.1-4.2.2
  • WordPress version: 5.9.2
  • First release: Jul 16, 2015
  • Latest release: Jul 16, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ryuheixys (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 3,847 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼299.01ms] Passed 4 tests

Analyzing server-side resources used by WordPress SEO ACF Content Analysis
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0159.71 ▲4.04
Dashboard /wp-admin3.42 ▲0.0138.49 ▲1.07
Posts /wp-admin/edit.php3.65 ▲0.0139.60 ▼1.95
Add New Post /wp-admin/post-new.php6.89 ▼0.0898.04 ▼1,198.64
Media Library /wp-admin/upload.php3.30 ▲0.0130.56 ▲3.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WordPress SEO ACF Content Analysis
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,787 ▲3315.79 ▲0.115.96 ▼0.392.37 ▼0.58
Dashboard /wp-admin2,895 ▲376.10 ▼0.07117.22 ▼17.36154.76 ▼8.68
Posts /wp-admin/edit.php2,694 ▲33.24 ▼0.0165.99 ▲2.09138.08 ▼6.78
Add New Post /wp-admin/post-new.php1,752 ▲4121.61 ▼0.03460.28 ▲38.71156.72 ▼4.58
Media Library /wp-admin/upload.php1,695 ▼35.51 ▼0.01145.60 ▲0.09184.87 ▼5.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-seo-acf-content-analysis/plugin.php:25

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: acf, seo, acf-flexicontent, yoast, custom fields...

wp-seo-acf-content-analysis/plugin.php 92% from 13 tests

The main PHP file in "WordPress SEO ACF Content Analysis" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-seo-acf-content-analysis.php" instead of "plugin.php")

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
No dangerous file extensions were detected35 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36935

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected