89% customization-for-wp-seo

Code Review | Customization for WP SEO

WordPress plugin Customization for WP SEO scored89%from 54 tests.

About plugin

  • Plugin page: customization-for...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 29, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 4
  • Update frequency: every 94.3 days
  • Top authors: naa986 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /688 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.32ms] Passed 4 tests

An overview of server-side resources used by Customization for WP SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.77 ▼3.22
Dashboard /wp-admin3.35 ▲0.0541.72 ▼5.72
Posts /wp-admin/edit.php3.40 ▲0.0448.84 ▼2.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0477.33 ▼17.48
Media Library /wp-admin/upload.php3.27 ▲0.0436.33 ▲1.78
Customization for WP SEO /wp-admin/options-general.php?page=customization-for-wp-seo-settings3.2427.29

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Customization for WP SEO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▼0.171.56 ▼0.1542.01 ▲1.20
Dashboard /wp-admin2,207 ▲225.90 ▲0.01115.92 ▲15.0143.17 ▼3.67
Posts /wp-admin/edit.php2,093 ▲71.97 ▼0.0734.27 ▼3.1732.22 ▼2.44
Add New Post /wp-admin/post-new.php1,538 ▲123.17 ▲0.13649.51 ▼5.6850.17 ▲1.45
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.0294.01 ▼3.0940.86 ▼2.12
Customization for WP SEO /wp-admin/options-general.php?page=customization-for-wp-seo-settings8452.0524.8328.91

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: yoast seo, schema, seo, yoast

customization-for-wp-seo/main.php 85% from 13 tests

Analyzing the main PHP file in "Customization for WP SEO" version 1.0.1
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("customization-for-wp-seo.php" instead of "main.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected192 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12410192

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin