84% exclude-custom-post-types-from-seo-sitemap

Code Review | Exclude Custom Post Types From SEO Sitemap

WordPress plugin Exclude Custom Post Types From SEO Sitemap scored84%from 54 tests.

About plugin

  • Plugin page: exclude-custom-po...
  • Plugin version: 1.01
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 3, 2019
  • Latest release: Sep 3, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: bc2018 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /973 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼2.38ms] Passed 4 tests

Analyzing server-side resources used by Exclude Custom Post Types From SEO Sitemap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2045.11 ▼0.59
Dashboard /wp-admin3.55 ▲0.2552.23 ▲6.21
Posts /wp-admin/edit.php3.67 ▲0.3152.86 ▼0.66
Add New Post /wp-admin/post-new.php6.14 ▲0.2591.38 ▼7.48
Media Library /wp-admin/upload.php3.48 ▲0.2537.26 ▼0.79
Exclude Sitemap YSEO /wp-admin/admin.php?page=exclude_sitemap_yseo3.5048.99
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu3.4433.11

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Exclude Custom Post Types From SEO Sitemap
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,535 ▲1,78914.01 ▼0.602.00 ▲0.0345.90 ▲0.43
Dashboard /wp-admin3,948 ▲1,7606.04 ▲1.13168.73 ▲62.5956.25 ▲15.16
Posts /wp-admin/edit.php3,477 ▲1,3853.04 ▲0.9980.69 ▲40.9647.01 ▲11.05
Add New Post /wp-admin/post-new.php2,871 ▲1,35218.18 ▼5.18758.57 ▲142.2243.04 ▼11.54
Media Library /wp-admin/upload.php2,353 ▲9655.07 ▲0.81121.28 ▲10.5751.41 ▲8.77
Exclude Sitemap YSEO /wp-admin/admin.php?page=exclude_sitemap_yseo1,4632.5247.8552.34
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu1,3882.4136.4827.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BinaryCarpenter\\BC_EX\\add_action() in wp-content/plugins/exclude-custom-post-types-from-seo-sitemap/Initiator.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: yoast seo, seo, exclude custom post type

exclude-custom-post-types-from-seo-sitemap/Initiator.php 85% from 13 tests

"Exclude Custom Post Types From SEO Sitemap" version 1.01's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("exclude-custom-post-types-from-seo-sitemap.php" instead of "Initiator.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin31,047 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27,49174119,296
CSS21383,14610,768
PHP9366417983

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.67
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods70
▷ Static methods2535.71%
▷ Public methods6187.14%
▷ Protected methods00.00%
▷ Private methods912.86%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants00.00%
▷ Class constants16100.00%
▷ Public constants16100.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 images were found in this plugin