84% crawl-optimization

Code Review | Crawl Optimization

WordPress plugin Crawl Optimization scored84%from 54 tests.

About plugin

  • Plugin page: crawl-optimization
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Mar 29, 2023
  • Number of updates: 27
  • Update frequency: every 1.5 days
  • Top authors: aleemiqbal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▲5.10ms] Passed 4 tests

Server-side resources used by Crawl Optimization
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2047.48 ▲6.95
Dashboard /wp-admin3.50 ▲0.1951.57 ▲3.10
Posts /wp-admin/edit.php3.61 ▲0.2647.49 ▲0.04
Add New Post /wp-admin/post-new.php6.09 ▲0.21103.94 ▲10.32
Media Library /wp-admin/upload.php3.42 ▲0.1942.26 ▲10.73

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
ultimatecrawloptimizer_max_search_characters

Browser metrics Passed 4 tests

A check of browser resources used by Crawl Optimization
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.60 ▼0.582.08 ▲0.4248.86 ▲1.31
Dashboard /wp-admin2,226 ▲385.91 ▲0.00101.05 ▼8.2138.47 ▼7.66
Posts /wp-admin/edit.php2,109 ▲202.09 ▲0.0539.18 ▲1.8637.08 ▲0.15
Add New Post /wp-admin/post-new.php1,531 ▲1723.34 ▲5.74639.52 ▼34.9656.66 ▲8.79
Media Library /wp-admin/upload.php1,411 ▲234.33 ▲0.0695.76 ▼0.1044.13 ▲2.77

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
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • ultimatecrawloptimizer_max_search_characters
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/crawl-optimization/crawl-optimization.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crawl-optimization/optimizer/optimizer.php:3

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: seo, google search console, crawl, crawler, search engines

crawl-optimization/crawl-optimization.php Passed 13 tests

The principal PHP file in "Crawl Optimization" v. 1.2.4 is loaded by WordPress automatically on each request
50 characters long description:
Plugin to Remove Garbage which wastes crawl budget

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
Good job! No executable or dangerous file extensions detected1,142 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36324946
CSS100160
JavaScript101536

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions45
▷ Named functions4497.78%
▷ Anonymous functions12.22%
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