79% yydevelopment-seo-data

Code Review | YYDevelopment SEO Keywords Data

WordPress plugin YYDevelopment SEO Keywords Data scored 79% from 54 tests.

About plugin

  • Plugin page: yydevelopment-seo...
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Sep 9, 2018
  • Latest release: Jul 10, 2021
  • Number of updates: 46
  • Update frequency: every 22.5 days
  • Top authors: yydevelopment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,233 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.08MB] [CPU: ▼147.64ms] Passed 4 tests

A check of server-side resources used by YYDevelopment SEO Keywords Data
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1440.73 ▲3.44
Dashboard /wp-admin3.09 ▲0.0453.08 ▲4.53
Posts /wp-admin/edit.php3.15 ▲0.0449.84 ▼0.85
Add New Post /wp-admin/post-new.php5.01 ▼0.4396.49 ▼589.45
Media Library /wp-admin/upload.php3.04 ▲0.0341.42 ▼3.68

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 2 new options
New tables
wp_yydevelopment_seo_data
New WordPress options
yydev_keywords_seo_version
yydev_seo_keywords_timestamp

Browser metrics Passed 4 tests

An overview of browser requirements for YYDevelopment SEO Keywords Data
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10816.23 ▲0.599.14 ▲0.8953.99 ▲1.94
Dashboard /wp-admin2,959 ▲285.89 ▼0.20157.33 ▼3.07130.48 ▲6.27
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0074.50 ▲4.53102.35 ▲2.10
Add New Post /wp-admin/post-new.php1,913 ▲41523.85 ▲5.03432.71 ▲34.46142.08 ▲22.77
Media Library /wp-admin/upload.php1,807 ▼05.01 ▲0.02152.13 ▼18.93125.34 ▼2.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_yydevelopment_seo_data
  • Zombie WordPress options detected upon uninstall: 2 options
    • yydev_seo_keywords_timestamp
    • yydev_keywords_seo_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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 your attention:
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

yydevelopment-seo-data/index.php 92% from 13 tests

The main PHP file in "YYDevelopment SEO Keywords Data" ver. 1.6.0 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 ("yydevelopment-seo-data.php" instead of "index.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
No dangerous file extensions were detected746 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9364192746

PHP code Passed 2 tests

An short overview of 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.32
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%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/text-direction.png1.35KB0.41KB▼ 69.80%
images/icon.png14.58KB5.96KB▼ 59.08%
images/move-up.png1.05KB0.23KB▼ 78.43%
images/remove.png1.39KB0.82KB▼ 41.14%
images/separator.png1.15KB0.10KB▼ 90.91%